LINUX BASICS
- Today lets see about some basic commands of linux
- We are gonna use Oracle VirtualBox in which kali linux has been already booted.
--> Start the VirtualBox and start kali Linux
--> username : kali && password : kali
-->
--> For changing the default passwd:
In case of error in command it will be in red.
--> For changing current directory and checking directory:
cd <folder_name> : change directory
cd .. : for moving to previous directory
pwd : present working directory
mkdir <folder_name> : make directory
nano <filename> : nano is a text editor which is very easy to use. There are various text editors like Text editor ,Vim,..
Ctrl+O
Give or Check the file name
Press Enter
Ctrl+X
--> Now we can list the files in the directory by the command " ls ":
--> For reading the file we can use text editor or we can use " cat " command.cat <file_name>
For removing a file :
rm <file_name>
For removing empty folder:
rmdir <folder_name>
For removing folder with files:
rm <folder_name> -r
No comments:
Post a Comment