Useful Terminal commands every developer should know

# cd : Used to change the directory

# ls : Used to view/list contents of the directory

# clear : Clear the terminal logs of the current session

# pwd : Used to view the current working directory

# cp : Used to copy files from current to another directory

# mv : Used to move files from current to another directory

# mkdir : Used to make a new directory

# rmdir : Used to delete an empty directory

# rm : Used to delete directories and content within them

# locate : Used to find a file

# find : Used to search for files or directories within a given directory

# grep : Used to search for text in a particular file

# sudo : Used to perform tasks that need admin or root permissions

# df : Used to get details on system disk space

# du : Used to check space for a file or directory

# head : Used to view the first lines of a file

# tail : Used to view the last ten lines of a file

# diff : Used to compare contents of two files

# tar : Used to archive multiples files into a tarball

# zip : Used to compress files into a zip file

# unzip : Used to extract a zip file

# chmod : Used to change read, write and execute permission of files and directories

# chown : Used to transfer ownership of the file

# kill : Used to terminate a program

# ping : Used to check the connectivity status

# wget : Used to download files from the internet

# top : Used to display a list of running processes and CPU  usage of each process

# useradd : Used to create a new user

# userdel : Used to delete a user

# passwd : Used to set a password for a user