“Are you 100% Secured when you use linux? the answer is yes.”
Linux is a very Powerful and a fastest-growing operating system
In this Blog, we’ll learn the basics of the Linux command line including directory navigation, file/directory operations, and search
GET HELP WHEN STUCK
- whatis – display the on-line manual descriptions
- apropos – search the manual page names and descriptions
- man – an interface to the on-line reference manuals
BASIC BASH TERMINAL NAVIGATION COMMANDS
- ls – list directory contents
- pwd – print name of current/working directory
- cd – change working directory
- pushd/popd – put working directory on a stack
- file – determine file type
- locate – find files by name
- updatedb – update database for locate
- which – locate a command
- history – display bash command history
MANIPULATING FILES COMMANDS
- mkdir – create a directory/make directories
- touch – change file timestamps/create empty files
- cp – copy files and directories
- mv – move (rename) files
- rm – remove files or directories
- rmdir – remove empty directories
TEXT TO FILES COMMANDS
- cat – concatenate files and print on the standard output
- more/less – file perusal filter for crt viewing
- nano – command line text editor
- sudo – execute a command as superuser
- su – change user ID or become another user
- users – print the user names of users currently logged in
- id – print real and effective user and group IDs
CHANGING FILE PERMISSIONS COMMANDS
chmod – change permissions of a file
LOGGING OUT AND KILLING PROGRAMS COMMANDS
- Ctrl+C – kill a running command
- killall – kill processes by name
- exit – log out of bash
- Ctrl+D – signal bash that there is no more input
- Ctrl+L – redraw the screen
- Ctrl++ – make text bigger in terminal emulator
- Ctrl+- – make text smaller in terminal emulator
- Ctrl+Alt+T – the shortcut to open terminal
You can use the clear command to clear the terminal if it gets filled up with too many commands.
TAB can be used to fill up in terminal. For example, You just need to type “cd Doc” and then TAB and the terminal fills the rest up and makes it “cd Documents”.
Ctrl+C can be used to stop any command in terminal safely. If it doesn’t stop with that, then Ctrl+Z can be used to force stop it.
You can exit from the terminal by using the exit command.
You can power off or reboot the computer by using the command sudo halt and sudo reboot.
Thanks for reading, If you have any questions , please ask questions in the comments below.
I will personally answer all the questions, or alternatively, you can Dm me on Facebook too.
If this post was helpful, help me back by clicking the Share button.
Latest posts by Tanisk jha (see all)
- How to Manage State in vueJs effortlessly - May 29, 2020
- The step-By-Step Guide to Deploy your MERN Stack App on AWS - April 2, 2020
- Who else wants to learn the most efficient implementation of Bubble Sort today. - March 11, 2020