Kali Linux Basic Commands | Basic Linux commands you should know for ethical hacking - Lesson 2
Cyber Security & Ethical Hacking Skills
This is the 2nd video lesson by e Vṛiddhi. In this lecture, you will see our demonstration on how to use Kali Linux basic commands. This is for educational purposes only.
P.S. drwxr-xr-x 'WiFi Hacking' here the permisions are: from left (d rwx r-x r-x), prefix "d" means its a directory i.e a folder (if no prefix then its a file) rwx = read, write and execute permission for the owner i.e the root r-x = read and execute the Group r-x = read and execute for All Users
Each file and directory has three user based permission groups: owner – The Owner permissions apply only the owner of the file or directory, they will not impact the actions of other users. group – The Group permissions apply only to the group that has been assigned to the file or directory, they will not affect the actions of other users. all users – The All Users permissions apply to all other users on the system, this is the permission group that you want to watch the most.
Each file or directory has three basic permission types: read – The Read permission refers to a user’s capability to read the contents of the file. write – The Write permissions refer to a user’s capability to write or modify a file or directory. execute – The Execute permission affects a user’s capability to execute a file or view the contents of a directory.
The Permission Groups used are: u – Owner g – Group o – Others a – All users
Binary References To Set Permissions: r = 4 w = 2 x = 1
Permission numbers are: 0 = --- 1 = --x 2 = -w- 3 = -wx 4 = r- 5 = r-x 6 = rw- 7 = rwx
Example: chmod 640 FileName -This string means that the owner has read and write permissions (4+2=6 i.e 4=read and 2=write), the group has read permissions (4=read), and all other users have no rights to the file (0=no rights ).
We can use + (plus) and – (minus); to add or remove the specific permissions. Example: chmod a+rw FileName (this command will change 'FileName' file's permission for all users to read and write, alternatively we can use the command chmod 666 FileName to change 'FileName' file's permission for all users to read and write)
Sign '~' means Home Directory. Sign '/' means File System Directory
pwd: the tool displays your current directory cd: we can change our current directory with the cd command ls: for listing the contents of current directory mkdir: for creating a new directory rmdir: for removing a directory
Website: https://evrddhi.com/ e-mail: info@evrddhi.com ... https://www.youtube.com/watch?v=x19OxtSbv8I
106321221 Bytes