Wednesday, August 28, 2019

Basic linux commands for beginners

Today we are going to talk about common linux commands used for penetration testing and as well as for other varient of linux distribution. I will explain all the basic commands which will make you familiar with the linux environment. beginners can follow this article to make your basic clear.





If  you want to update and upgrade your whole system then you can type command given below . It is very important to update and upgrade your whole system for better results. In given command we have join two different commands in one execution and added -y for yes, after this it will not promt us permission to type Y  yes and N for no, definately it will save our time.

Syntax:

sudo apt-get update && sudo apt-get dist-upgrade -y









If you want to know your current path location in the terminal then you can type

Syntax:

pwd



  





If you want to see files and directories then you can type

Syntax:

ls 









If you want to go from one directory to another directory then type

Syntax:

cd directoryname










if you want to go one step back from from your current path location then type

Syntax:

cd ..










 If you want to go to your home directory from the current path location. then type

Syntax:










If you want to make a directory then type 

Syntax:

mkdir directoryname







If you want to create a file then you can type

Syntax:

touch filename











If you want to remove a file then type 

Syntax:

rm filename








If you want to remove a non empty directory then type 

Syntax:

rm -rf directoryname







If you want to insert text or write anything in a file then type

Syntax:

echo "Yourtext" > filename









If you want to read the content of a file then type 

Syntax:

cat filename





If want to move your file from one location to another then type 

Syntax:

sudo mv filename /locationpath







If you want help related to any command then type

Syntax:

man commandname

example : man rm
                 man cp
                man reboot
                shutdown --help
                mv --help




https://www.youtube.com/channel/UCEQyPaq6677Nnc8qCuiNWEw

No comments:

Post a Comment