More Commands
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.
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
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.
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.
clear command
clear // Clear terminal.
The clear command is a standard command to clear the terminal screen.
ps command
ps // Display the processes in terminal.
ps command in Linux is used to check the active processes in the terminal.
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.
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.
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.
alias command
alias // Command shortner
EX: alias c='cat'
alias is a user-defined shorthand for a longer command or sequence of commands.
top command
top // Display Cpu/Memory usage
The top command displays real-time information about system activity.
du command
du // Display Disk Usage
Ex: du -sh /path/to/directory
The du command is used to estimate file and directory space usage.
df command
df // Display Disk Free Space
Ex: df -h
The df command displays disk space usage for filesystems.
nano command
nano // Text editor
Ex: nano file.txt
The nano command launches the Nano text editor.
vim command
vi // Text Editor
Ex: vi file.txt
The nano command launches the Vim text editor.
Last updated