├── Readme.md ├── Shortcuts.md ├── TerminalCommands.md └── penguin.gif /Readme.md: -------------------------------------------------------------------------------- 1 | # Linux Commands CheatSheet 2 | Namaste Developers (* ^_^ *) 3 |
4 | Here I present Linux Commands CheatSheet to you(👉゚ヮ゚)👉 5 | 6 | --- 7 | 8 | - Make sure to ⭐ the repository for a quick glance when you want to refer to it. 9 | - Any contributions to this repo are welcome🐧 10 | 11 | 12 | -------------------------------------------------------------------------------- /Shortcuts.md: -------------------------------------------------------------------------------- 1 | ## Shortcuts known: 2 | 3 | - To open a terminal: `CTRL + ALT + T` / `Command + Option + T` 4 | - To minimize all windows opened and vice versa: `CTRL + ALT + D` / `Command + Option + D` 5 | - To erase everything from the current cursor position to the beginning of the line: `CTRL + U` / `Command + U` 6 | - To move the cursor to the beginning of the line: `CTRL + A` 7 | - To move the cursor to the end of the line: `CTRL + E` 8 | - To clear the terminal: `CTRL + L` 9 | - To stop the terminal from infinite loop: `CTRL + C` or `CTRL + Z`(suspends the process) 10 | - To exit a program in terminal: `CTRL + D` 11 | - To switch window of same program: `ALT + F6` 12 | - To backspace: `CTRL + H` 13 | - To delete the word before cursor: `CTRL + W` 14 | - To auto-complete files, directories, etc: `Tab` 15 | -------------------------------------------------------------------------------- /TerminalCommands.md: -------------------------------------------------------------------------------- 1 | ## Commands known: 2 | - To see what's in the file(first to last): [`cat `](https://www.geeksforgeeks.org/cat-command-in-linux-with-examples/) 3 | - To look at a file backwards, starting with the last line: `tac ` 4 | - To show the first 10 lines(default) of a file: [`head `](https://linuxize.com/post/linux-head-command/#head-command-syntax) 5 | - To show the first 'n' lines of a file: `head -n ` 6 | - To show the last 10 lines(default) of a file: [`tail `](https://linuxize.com/post/linux-head-command/#head-command-syntax) 7 | - To show the last 'n' lines of a file: `tail -n ` 8 | - To view documentation: [`man `](https://www.geeksforgeeks.org/man-command-in-linux-with-examples/) 9 | - To gain root/administrative access(prompts for password): `sudo` 10 | - To stop the graphical interface: `sudo systemctl stop gdm (or sudo telinit 3)` 11 | - To start the graphical interface: `sudo systemctl start gdm (or sudo telinit 5)` 12 | - To halt the system(requires superuser access): `shutdown -h` 13 | - To reboot the system(requires superuser access): `shutdown -r` 14 | - When administering a multi-user system, we have the option of notifying all users prior to shutdown: 15 | `sudo shutdown -h