/Linux Commands

Linux Commands

Unlike working with graphical environment, command line has powerful .You feel you can do everything.

That right, everything at your disposal.

This is collection of most command lines (99 commands) not all. Some I use every day, some I don’t remember that I use and others I only learned and keep it hot trying to divide it some for basic and some for network others advanced basics.

This section has most basics commands like help, list file and other:


Purpose: manual for command line programs.


Purpose: Display a description of the specified command.


Purpose: list the contents of a directory.


Purpose: Display the current/working directory.


Purpose: Change directories.


Purpose: Search for files and directories.


Purpose: Search the locate database for files and directories.


Purpose: Display the location of binary files, manual pages, and source code for the

Specified Command

Purpose: Display the file type of the specified file.


Purpose: Display or set the system clock.


Purpose: Display a calendar on the command line.


Purpose: Display commands that have recently been executed.


Purpose: Clear the contents of the current screen.


Purpose: Log out of the system.


Purpose: Exit the current shell.


This section has most of advanced commands such as copying file and deleting it, text editor, dealing with user and groups, process, startup and shutdown the system


Purpose: Move or rename files and directories.


Purpose: Copy files and directories.


Purpose: Remove files.

“mkdir / rmdir”

Purpose: Create/remove directories.


Purpose: Create a file.


Purpose: List open files.


Purpose: Create links (shortcuts) to files or directories.


Purpose: Create command line aliases.


Purpose: Display environment variables.


Purpose: Simple text editor.


Purpose: Robust and extensible text editor.


Purpose: Extract readable characters from binary files.


Purpose: Concatenate files and display their contents.


Purpose: Concatenate files in reverse order.


Purpose: Count the number of lines, words, and characters in a file.


Purpose: Display the output of a command or text file one page at a time.


Purpose: Display the output of a command or text file one page (or line) at a time.


Purpose: Display the first part of a file.


Purpose: Display the last part of a file.


Purpose: Display the output of a command and write the output to a file.


Purpose: Sort the contents of an input stream or file.


Purpose: Read the contents of a compressed file.


Purpose: Change file and directory permissions.


Purpose: Change the owner of a file or directory.


Purpose: Change the group of files and directories.


Purpose: Display/set a user’s default file creation mask.


Purpose: Switch user accounts.


Purpose: Run a single command as a different user.


Purpose: Display information about a user’s identity.


Purpose: Display which groups a user belongs to.

“who / whoami”

Purpose: Display who is logged into the system.


Purpose: Display detailed information about users logged in to the system.

“last / lastb”

Purpose: Display the last successful/failed user logins.


Purpose: Display the most recent user login information.


Purpose: Display information about a user account.


Purpose: Change passwords.

“useradd / userdel”

Purpose: Create/delete user accounts.

“adduser / deluser”

Purpose: Create/delete user accounts on Linux systems.

“groupadd / groupdel”

Purpose: Add/remove a group.

“usermod / groupmod”

Purpose: Modify user and group account settings.


Purpose: Broadcast a message to all users on the system.


Purpose: Display/set system resource limits.


Purpose: Display running processes.


Purpose: Find processes by name.


Purpose: Display all running processes in a tree view.


Purpose: Terminate a process.


Purpose: Terminate all processes with the specified name.

“at / atq / atrm”

Purpose: Schedule a program to run at the specified time.


Purpose: Schedule programs to run during low CPU load.


Purpose: Shut down the system.


Purpose: Power off the system.


Purpose: Reboot the system.


Purpose: Halt the system.


Purpose: Display the previous and current run level.


Purpose: Display and edit run level configuration on Red Hat Linux-based systems.

This section covered basic networking and configuration commands


Purpose: Display the system’s host name.


Purpose: Display network interfaces.

“ifup / ifdown”

Purpose: Enable/disable network interfaces.


Purpose: Display wireless network interfaces.


Purpose: Display ethernet card settings.


Purpose: Display the ARP cache.


Purpose: Send ICMP echo requests to network hosts.


Purpose: Display TCP/IP routing information.


Purpose: Display TCP/IP routing information on Linux systems.


Purpose: Perform DNS lookups on Unix systems.


Purpose: Perform DNS lookups on BSD and Linux systems.


Purpose: Simple DNS lookup utility.


Purpose: Lookup domain name registry information in the WHOIS database.


Purpose: Display network connections, statistics, and routing information.


Purpose: Display and configure TCP/IP routes.


Purpose: Displays raw traffic on a network interface.


Purpose: Scan TCP/IP ports on network systems.


Purpose: Transfer files using FTP and some didn’t found any place for it


Purpose: Monitor system performance and running processes.


Purpose: Advanced system monitor for Linux.


Purpose: Display system memory and swap space usage information.


Purpose: Display file system usage information.


Purpose: Display disk usage.


Purpose: Display information about the operating system.


Purpose: Display how long the system has been online.


Purpose: Display kernel log messages.


Purpose: Trace system calls and signals.


Purpose: Trace library calls.


Purpose: Display Linux kernel module information.

The idea is not in keeping all commands but you must know what you need in timely manner and you have to remember

UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity.” – Dennis Ritchie