Top 10 Linux commands for beginners
Updated: Apr 5, 2021
In this blog, we have made a list of the top 10 Linux commands for beginners. To use the Linux terminal like an expert or Linux admin you must know the basic commands.
Linux is a part of open-source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991. Those who wanted to learn Linux should know the basic terminal commands. 1) Sudo
Sudo stands for SuperUser DO! These commands basically allow the users to run the programs with the security privileges of another user ( all the superuser)
2) ls ( list) By using this command we can check the directory folder list. These commands also come with other features like we can check hidden files and directories, permissions d and many more.
ls show you a list of files and directories of computer; ls -l long list format with extended information, file or folder name, and owner of the file and its permission. ls -a show you hidden files and folders; ls -h shows a list along with the size of files and directories.
cd stands for change directory. we used this command for navigating from one directory to another. In a simple way, the cd commands help the users to change the directory. most widely used commands in Linux.
/home $ cd
In my above point, I have shared how to change the directory now mkdir help you to create a new folder under any directory or as per your requirement.
~$ mkdir folderName
CP stands for copy and pastes it is the one most useful commands basically cp helps you to copy the files, groups of files or directory from one path to another destination path. To use this command type the file name after that location where you want to copy that specific file.
~$ cp Test /root/Downloads
rm command basically used to delete the files or directories.
rm <filename> remove a file; rm -r <directory name> remove directories and their contents recursively; rm -rf < directory name> remove directories and their files forcefully; rm -rf * remove everything forcefully from the directory.
This command is the most useful command in Linux. It is basically used to install, remove, update, upgrade the package along with the Linux repository. Basically, this command helps the verified the source for the repository and the command is able to upgrade and remove the package along with its dependencies.
$ apt-get update
one of the best commands in Linux for searching plain-text data in a specified file.
$ grep test sample
Test: stand for a string to match
sample: filename 9) cat
Cat stands for concatenate. one of the most widely Linux commands cat commands helps you to create, view the content of the respective files.
$ cat (filename) for view the content of the file.
At number 10 we have poweroff commands. if you wanted to poweroff from the terminal then this command will help you. just need to type below command
If you enjoyed this post, I’d be very grateful if you’d help it spread by emailing it to a friend or sharing it on Twitter or Facebook. Thank you!