LINUX COMMANDS YOU SHOULD KNOW AS A BEGINNER IN TERMINAL

how to start windows terminal or terminal, beginner tutorial for terminal, termux tutorials, termux commands meaning, terminal command meaning,


As you all know linux is as complicated or as simple that everyone can know. We do linux or uses terminal to execute programs for our uses. There are lots of Terminals or command prompt, like windows terminal. Main problem is that, we can't figure out the things used in this even after seeing tutorials. So these are the following commands you should understand before going deep into it:

1. pwd

This command Displays the current working directory of the terminal.


2. echo

This command writes its arguments to standard output.


3. su

This command is used to switch to root-user so that superuser permissions can be used to execute commands.


4. su <username>

This command is used to switch to a different user whose name is passed as the argument.


5. sudo

This command executes only that command with root/superuser privileges.


6. ls

This command lists all the contents in the current working directory.


7. clear

This command is used to clear the terminal screen. Contents will not actually be deleted in this case, only scrolled down. You can also clear the screen by pressing Ctrl+L on the keyboard.


8. cp

This command copies files and directories. A copy of the file/directory copied, still remains in the working directory.


9. mv

This command moves files and directories from one directory to another. The file/directory once moved, is deleted from the working directory.


10. rm

This command removes files from a directory. By default, the rm command does not remove directories. Once removed, the contents of a file cannot be recovered.


11. grep

This command is used to search for a particular string/word in a text file. This is similar to “Ctrl+F”, but executed via a CLI.


12. cat

This command can read, modify or concatenate text files. It also displays file contents.


13. cd

This command is used to change the current working directory of the user.


14. sort

This command sorts the results of a search either alphabetically or numerically. Files, file contents and directories can be sorted using this command.


15. mkdir

This command is used to create a new directory.


16. rmdir

This command is used to remove a specified directory. Although by default, it can only remove an empty directory, there are flags which can be deployed to delete the non-empty directories as well.


17. chmod

This command is used to change the access permissions of files and directories.


18. install packages

For an RHEL based system; 

syntax: $ sudo yum install package-name


For a Debian based system;

syntax: $ sudo apt-get install package-name


For a Fedora based system;

syntax: $ sudo dnf install package-name


THAT'S ALL FOR NOW ! KEEP GRINDING YOURSELF !! KEEP MOVING !!!

Post a Comment

Previous Post Next Post