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
nano editor in linux shellnano is a basic text editor in Linux. Main features of nano are given below.
- very easy and short learning curve
- shortcuts to important actions are given at the bottom of editor
- very easy for someone coming from windows background
Then you can start editing the file. We do not have insert and command modes (available in vim) in nano. Here are some of the shortcuts in nano.
- Ctrl + o – To save the file you can use ctrl+o hotkey.
- Ctrl + x – This hotkey is used to exit the nano editor.
- Ctrl + w – This hotkey is used to find the text in a file in nano editor.
- Ctrl + r – load the specified file in nano
- Alt + k – Select the text
- Ctrl + k – Cut the text
- Ctrl + u – Paste the selected text
- Alt + / – This hot key can be used to go to the end of file
- Ctrl + a – This hot key can be used to go to the beginning of current line
- Ctrl + e – This hot key can be used to go to the end of current line
- Ctrl + c – shows current position of the cursor like line number, column number etc
- Ctrl – (dash) – This command will let you jump to specific line number in a file
- Ctrl + w – Allows you to find the text in a file. To find the next occurrence, you can use Alt + w command.
Web development and Automation testing