0% found this document useful (0 votes)
2 views

linux1

The document provides a list of essential Linux commands and their specifications, including commands for navigating directories, creating files, and managing file permissions. It explains Linux file permissions, detailing how to read, write, and execute files, as well as how to change permissions using the chmod command. Additionally, it distinguishes between absolute and relative paths in the Linux file system.

Uploaded by

fatmamohammedzzx
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

linux1

The document provides a list of essential Linux commands and their specifications, including commands for navigating directories, creating files, and managing file permissions. It explains Linux file permissions, detailing how to read, write, and execute files, as well as how to change permissions using the chmod command. Additionally, it distinguishes between absolute and relative paths in the Linux file system.

Uploaded by

fatmamohammedzzx
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Linux

Commands
description specification

quickly look at the optional --help


parameters without browsing
through the complete
.documentation
quickly look h-
We can find out where we are with pwd
the command
list all the contents inside a ls
.directory
display more information on those ls -l
..directories and files
Show all files also hide files ls –a
To move through the directories .. cd \ cd
Commands
Description specification
create files directly touch
Make directory mkdir
Move (cut in windows) mv
To get the first field, character and etc.. cut
. In each Line
copy cp
Create file and open it nano
.Display the contents of the file cat
Exiftool image.jpeg exiftool
Searching for specific word in a file grep
Linux Permissions
• Permissions for files are (read , write , execute )
• Execute => 1 => x
• Write => 2 => w
• Read => 4 => r
• If you need read & write then 4+2 = 6
• If you need write& execute then 2+1 = 3
• If you need all read& write & execute then 7
Linux Permissions
• To see the permissions of files and folders => ls –lah

• If you relaized the first bit found ( d ) which means that is


directory
• And the First three bits are (r w x ) => for the owner
• The second three bits are ( r – x ) => for group users
• The third three bits are ( r – x ) => for any other user
Linux Permissions
• To change the permissions for a file fileName.txt=>
chmod 777 fileName.txt
• To add execute permission to a file fileName.txt=>
chmod +x fileName.txt
Paths

absolute path Relative path


• starts with / • Is it current path and you
• /home/Azzaa/downloads/ don't need to discribe the
full path
Arigatou

You might also like