Kali Linux Command Lines Part 1 – Getting Started with Directories

in kali •  7 years ago 

Welcome, everyone, to this new series on using command lines in Kali Linux. My name is Bijay and I’ll be teaching you the whole series of this training. This training series is recommended for beginners.

Getting Started with Directories

This module is a brief overview of the most common commands to work with directories: Like pwd, cd, ls, mkdir and rmdir. We will see all commands in Kali Linux terminal.

pwd – print working directory
cd – change directory
ls – list contents
mkdir – make directory
rmdir – remove directory

Recognizing some directories of linux :

Sign '~' means Home Directory.

Sign '/' means File System Directory

For 'desktop folder', In Kali Linux we write it as 'Desktop' (notice capital D here)

Now, let's talk about how to execute above mentioned 5 commands.

root@kali:~#
means we are in home folder.

Write 'cd /'
root@kali:~# cd /
means we now changed directory from ~ to /

Write 'ls'
root@kali:/# ls
means it will list/show the content of / directory

Now, lets make new folder 'test' in desktop. For that execute following :
root@kali:/# cd ~
root@kali:~# cd Desktop
root@kali:~/Desktop# mkdir test

New folder, 'test' will be created in desktop now. To change directory to 'test', use 'cd test', and to list the content 'ls'. i.e.
root@kali:~/Desktop# cd test
root@kali:~/Desktop/test# ls

To know working directory, we write 'pwd'. So,
root@kali:~/Desktop/test# pwd
It will o/p 'test' in next line, because we are in 'test' folder, and pwd prints working directory.

Now, to remove the directory 'test', execute following :
root@kali:~/Desktop/test# cd Desktop
Means we are changing to Desktop (getting out from 'test)

root@kali:~/Desktop# rmdir test
Means we are deleting 'test' directory.

Well, this is the basics of working with directories in kali linux. As we move along, we will encounter many other useful commands to work with directory.
(Note : If, you are in confusion to execute this commands, then please watch my video tutorial demo/lab on this part given here :

)

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Hi! I am a robot. I just upvoted you! I found similar content that readers might be interested in:
https://www.cybrary.it/0p3n/kali-linux-command-line-pt-2-working-with-directories/

Yes. That's mine. I am member of Cybrary. And that post was submitted by me.
Regards,
Bijay Acharya