The Linux Commands Series: Part I

man, ls, cd, pwd, mkdir, rmdir, mv, cd, open, touch

Depositphotos

man

This command helps you to understand all other commands.

ls

When inside a folder if you want to view the list of all the files inside the folder then type the command:

cd

cd means change directory. You can mention a folder name that you want to move into from the current directory or you can also mention a full path from the root.

pwd

PWD means present working directory. Whenever you need to know which directory you are in then use this command, just type “pwd”, it’ll print the current folder full path.

mkdir

This command is useful to create folders, for example, if you want to create an animals folder then use the below command:

rmdir

You can delete a folder using this command.

mv

You can move a file around using this command. You can specify the file current path and destination path:

cp

You can copy a file content into another file using this command:

open

You can open a file using this command:

touch

You can create an empty file using the “touch” command:

--

--

I am a geek and technologist, at-least that’s what I would like call myself. I love anonymity. Let’s rock and roll!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ghost Rider

I am a geek and technologist, at-least that’s what I would like call myself. I love anonymity. Let’s rock and roll!