![]() ![]() ![]() basename Commandīasename command helps to print the name of a file stripping of directories in the absolute path: $ basename bin/findhosts.shīc is a simple yet powerful and arbitrary precision CLI calculator language which can be used like this: $ echo 20.05 + 15.00 | bcīg is a command used to send a process to the background. $ awk '//'/etc/hostsįor more Awk concepts (basic and advance) with simple and easy-to-understand, we’ve created a book that contains 13 chapters with a total of 41 pages, which covers all Awk basic and advance usage with practical examples: Awk Getting Started Guide for Beginners batch Commandīatch is also used to schedule tasks to run a future time, similar to the at command. It’s an alternative to cron and anacron, however, it runs a task once at a given future time without editing any config files:įor example, to shutdown the system at 23:55 today, run: $ sudo echo "shutdown -h now" | at -m 23:55Ītq command is used to view jobs in at command queue: $ atqĪtrm command is used to remove/deletes jobs (identified by their job number) from at command queue: $ atrm 2įor more usage about at command, read: How to Use ‘at’ Command to Schedule a Task in Linux awk CommandĪwk is a powerful programming language created for text processing and generally used as a data extraction and reporting tool. You can use it as below to find all alive hosts on a network: $ sudo arp-scan -interface=enp2s0 -localnetĪt command is used to schedule tasks to run in a future time. $ sudo aptitude updateįor more usage on aptitude, read: Learn Debian Package Management with Aptitude Command arch CommandĪrch is a simple command for displaying machine architecture or hardware name (similar to uname -m): $ archĪRP ( Address Resolution Protocol) is a protocol that maps IP network addresses of a network neighbor with the hardware (MAC) addresses in an IPv4 network. Like apt-get and apt it can be used to install, remove or upgrade software packages on a system. $ sudo apt-get updateįor more apt-get usage, read: 25 Useful Commands of APT-GET for Package Management aptitude CommandĪptitude is a powerful text-based interface to the Debian GNU/Linux package management system. It is used to install new software packages, remove available software packages, upgrade existing software packages as well as upgrade entire operating system. $ apropos adduserĪpt tool is a relatively new higher-level package manager for Debian/Ubuntu systems: $ sudo apt updateįor more apt usage read: 15 Useful Examples on APT Command apt-get CommandĪpt-get is a powerful and free front-end package manager for Debian/Ubuntu systems. Unlike its sister cron it assumes that a system will not run continuously, therefore if a scheduled job is due when the system is off, it’s run once the machine is powered on.įor more information about anacron and cron read: Cron Vs Anacron: How to Schedule Jobs Using Anacron on Linux apropos CommandĪpropos command is used to search and display a short man page description of a command/program as follows. anacron CommandĪnacron is a Linux facility used to run commands periodically with a frequency defined in days, weeks and months. The above command will create an alias called home for /home/tecmint/public_html directory, so whenever you type home in the terminal prompt, it will put you in the /home/tecmint/public_html directory. It is helpful for creating new/custom commands from existing Shell/Linux commands (including options): $ alias home='cd /home/tecmint/public_html' Agetty is a substitute of Linux getty: $ agetty -L 9600 ttyS1 vt100Īlias is a useful shell built-in command for creating aliases (shortcut) to a Linux command on a system. Once it detects a connection, it opens a tty port, asks for a user’s login name and calls up the /bin/login command. $ sudo adduser tecmintįor more adduser and addgroup commands: 15 Practical Examples on adduser Command in Linux agetty CommandĪgetty is a program which manages physical or virtual terminals and is invoked by init. The adduser and addgroup commands are used to add a user and group to the system respectively according to the default configuration specified in /etc/nf file. You can find the actual description of each Linux command in their manual page which you can access like this: $ man command-name In this article, we will introduce you a list of most frequently used Linux commands with their examples for easy learning. While others are generic Unix/Linux commands that you’ll find in all if not most mainstream distros. It is important to note that certain commands are “distro-based” – they can only be found in specific distros. ![]() We are bound to use a number of them on a daily routine or numerous times to perform common tasks than others. There are a countless number of commands in Linux.
0 Comments
Leave a Reply. |