ListOf: 10 Must Know Linux Commands

It so happens that for most Linux users the old way of interacting via command line is most suitable. It is fast, efficient and convenient. If your are new to Linux and want to try out some commands, open a terminal and get started.

1. ls - List

ls lists the files and folders of the current directory.
ls "path" lists the files and folders of the given path.

2. pwd - Print Working Directory

pwd prints the current working directory.

3. mkdir - Make Directory

mkdir "name" creates a new directory.
mkdir -p "nested path" created nested directories.

4. cd - Change Directory

cd "path" sets the given path as the current working directory.

5. rmdir - Remove Directory

rmdir "directory name" deletes the given directory if empty.

6. rm - Remove

rm "file" deletes the given file.
rm -r "directory" deletes folders recursively.

7. cp - Copy

cp "source" "destination" copies file or folder from source to destination.
cp -r "source" "destination" copies folder recursively from source to destination.

8. mv - Move

mv "source" "destination" moves a file or folder from source to destination.

9. exit - Exit

exit ends the current terminal session.

10. man - Manual

man "command name" show the manual page for the given command name. It is helpful when you want to explore some new command. Utilize this command to expand your knowledge of Linux command line.

If you have come this far, I hope you have learned something useful. For suggestions and queries head to the comment section below.

Show Comments