More Commands

  1. cp command

cp   // Copy files from one directory to another.
Ex: cp sourcefile destinationfile

The cp command of Linux is equivalent to copy-paste and cut-paste in Windows.

  1. mv command

mv   // Rename and Replace the files.
Ex: mv sourcedir destinationdir

The mv command is generally used for renaming the files in Linux.

mv <file name> <Renamed file name> to rename the files

  1. uname command

uname // Command to get basic information about the OS.
Ex: uname -a

The uname command is used to check the complete OS information of the system.

  1. locate command

locate   // Find a file in the database.
Ex: locate file.txt

The locate command is generally used to locate the files in the database. Use an asterisk (*) to search for content that contains two or more words.

  1. clear command

clear // Clear terminal.

The clear command is a standard command to clear the terminal screen.

  1. ps command

ps   // Display the processes in terminal.

ps command in Linux is used to check the active processes in the terminal.

  1. whoami command

whoami   // Display Current username

The whoami command provides basic information that is extremely useful when working on multiple systems. In general, if you are working with a single computer, you will not require it as frequently as a network administrator.

  1. wget command

wget // Download files from the internet.
Ex: wget https://AWSCLI.com

The wget command in the Linux command line allows you to download files from the internet. It runs in the background and does not interfere with other processes.

  1. whereis command

whereis // View the exact location of any command typed after this command.

whereis command in Linux is generally used to see the exact location of any command typed after this.

  1. alias command

alias   // Command shortner
EX: alias c='cat'

alias is a user-defined shorthand for a longer command or sequence of commands.

  1. top command

top   // Display Cpu/Memory usage

The top command displays real-time information about system activity.

  1. du command

du   // Display Disk Usage
Ex: du -sh /path/to/directory

The du command is used to estimate file and directory space usage.

  1. df command

df   // Display Disk Free Space
Ex: df -h 

The df command displays disk space usage for filesystems.

  1. nano command

nano // Text editor
Ex: nano file.txt

The nano command launches the Nano text editor.

  1. vim command

vi // Text Editor
Ex: vi file.txt

The nano command launches the Vim text editor.

Last updated