Wednesday, May 11, 2022

Linux Basics

 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
 
-->  Creating a folder and Creating file inside the folder :
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,..

when Enter is clicked nano editor open after writing the text press 
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>


--> Removing file and folder: 
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

Google Cybersecurity Professional Certificate

    Google Cybersecurity Professional Certification 🔒 Google Cybersecurity Professional Certification: A Journey Unveiled! 🔒 Hey Folks! 🌟...