Learn All Cli Commands

0

List Of All Cli Commands



man command - Show manual for command

pwd - Prints the full name (the full path) of current/working directory

ls - List directory contents
ls -a - List all the content, including hidden files
ls -l - List the content and its information

mkdir foldername – Create a new directory foldername

cd foldername – Change the working directory to foldername
cd - Return to $HOME directory
cd .. - Go up a directory
cd - - Return to the previous directory

emacs, nano, vi – File editors

cp source destination – Copy source to destination
cp -r source destination – Copy a directory recursively from source to destination

mv source destination - Move (or rename) a file from source to destination

rm file1 - Remove file1
rm -r folder - Remove a directory and its contents recursively

cat file – Print contents of file on the screen
less file - View and paginate file
head file - Show first 10 lines of file
tail file - Show last 10 lines of file

Ifconfig - Show network interface like ip address, subnet mask

uname - Operating system name

uname -m = Show architecture of machine

Tags

Post a Comment

0Comments

If you have any doubts, please let me know

Post a Comment (0)