Basic Linux TutorialIntroduction – What is it? Why to learn? Linux installation directory structures Boot process Run levels in Linux Desktop Environments Different shells BASH Internal and External Commands Basic Linux Commands Important files and directories in Linux Environmental and Shell Variables Command history in Linux Character classes in Linux Text editors vim nano Searching files Creating new files Viewing File Contents File commands File permissions and ownership WildCards (Globbing) in files File compression Directory commands xargs command in Linux Comparing files Searching patterns using grep command Translating the characters using tr command Extracting data using cut command Stream editing using sed command Data extraction and reporting using awk command Sorting the file or string input uniq command in Linux Difference between grep, tr, cut, sed and awk commands Hardware commands Hard disk and memory space commands Working with Processes Managing Jobs Working with cron jobs Service command in Linux Network commands Managing Users and Groups Other Popular commands Standard streams and Redirection Pipes Package Managers in Linux
Popular in linux shellBelow is the list of popular linux commands.
- man – prints manual page of the command
- whereis – prints the location of command
- which – prints the location of the command
- type – prints the location of command
- echo – prints the string, variable or file
- mail – used to send an email
- logout – log off from the system
- date – prints system time stamp
- cal – shows the calendar
zdump commandzdump command is used to display time in different time zone. For example – If you want to see the time in GMT, you can use below command. zdump GMT
dirname commanddirname command is used to get the name of directory in which file is stored. For example if the full path of file is /usr/home/f1.txt, then dirname will be /usr/home
basename commandbasename command is used to get only main name of file. For example if the full path of file is /usr/home/f1.txt, then basename will be f1.txt
sleep commandsleep command is used to wait for fixed amount of seconds. For example to sleep for 2 seconds, use below syntax.
Web development and Automation testing