This Repo Tracks my Learning Progress for my Refresher on Linux Commands. The Repo collects learnings and projects from 'Linux Mastery: Master the Linux Command Line' Udemy Course
echo Hello To print on terminal cal Current Month Calender cal -y Current Year Calender date To print Date, Time, Date, Zone clear Clean up Terminal Ctrl + L Shortcut for Cleanup Up Arrow Cycle back to commands history All old commands shown numbered !1 From History List Select 1st !! Run the most recent command history -c; history -w Clears the history and Writes it exit Terminal Close CTRL + D Terminal Close Shortcut
-
Structure - commandName options inputs
-
cal 12 2017
-
date -u - Date in Universal Time - Short Name
-
date --universal - Date in Unversal Time - Long Name
-
commandName options1 options2 input1 input2
-
To know where a command file recides, you can use the "which" command which echo
Also Known as Man Pages.
Manual Structure:
-
Manual is divided into 8 Sections
- User Commands
- System Calls
- C Library Functions
- Devices & Special Files
- File Formats & Conventions
- Games
- Misc
- System Admin
-
Reading the Man Pages of Linux
-
man -k which (-k for search the manual for term which)
- Result will give which doc and section number
- man 1 which (section 1 manual of which)
-
Manual Strucutre:
- Synopsis
- Descriptions
- Options
- Exit Status
- Etc...
-
Finding new commands:
- I want to find a command that list a directory. So search is done by this command: " man -k "list directory" "
- man 1 ls or man ls to know more
-