Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----------------------------------------------------------------------------------------
- man - This Command use For Manual
- -> man man
- ----------------------------------------------------------------------------------------
- date - Date Command use For get Date.
- -> man date (get manual date command)
- %d Day
- %m Month
- %y Year
- %b First 3 Character Of Month
- %a First 3 Character Of Day
- %A Full Name Of Day
- Example - Aug 21 17 (Month Date Year)
- Commnad - date "+%b %d %y"
- Command - date "+R" (get time)
- Commnad - date "+r" (get time with AM,PM)
- ----------------------------------------------------------------------------------------
- cal - Calender Command use for get current Calendar.
- ->man cal (get manual cal command)
- -h Turns off highlighting of today.
- Example - Print August 2017 Calendar
- Command - cal 08 12
- ----------------------------------------------------------------------------------------
- ls - list directory
- ->man ls (get manual ls command)
- -l show attribute (read,write,excute).
- -lh human readable with file size.
- -a all files view.
- Example - list all directory
- Command - ls -a
- ----------------------------------------------------------------------------------------
- cut - remove sections from each line of files
- ->cut -d '|' -f 2 TextFileName.txt | cat > TextFileName2.txt
- -d -> delimiter (sign , | : etc.)
- -f -> field number
- ---------------------------------------------------------------------------------------
- Table Example
- 1|Virajsinh|MscIT|USA
- ----------------------------------------------------------------------------------------
- chmod - chmod use for change file mode.(use for file permission)
- u - user
- g - group
- o - other
- r - read (value : 2)
- w - write (value : 4)
- x - execute (value : 1)
- '+' '-' use Plus minus for permission
- Example - Set All Permission
- Example - chmod 7 filename (2+4+1=7 all permission)
- Example - chmod u+r filename (user read file only)
- Example - chmod chmod u+r,g-w,o-w (use read, group not write, other not write)
- link - http://www.sanfoundry.com/10-practical-chmod-command-usage-examples-in-linux/
- ----------------------------------------------------------------------------------------
- grep - grep command to highlight word in text file
- Commnad - grep "Word" FileName.text
- ----------------------------------------------------------------------------------------
- tee - tee commnad use for another file make
- Example - cat OneFile.text | tee SecondFile.text
Add Comment
Please, Sign In to add comment