Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

Top 50 Linux Commands for Administrator

In this tutiorial i’m going to share Top 50 Linux command for administrator use.

  1. ls Command

ls is probably the first command every Linux user types in their terminal. It allows you to list the contents of the directory you want (the current directory by default), including files and other nested directories.

Example:

ls

2. cd Command:

cd stands for “change directory.” It allows you to navigate between directories in the Linux file system.

Example:

cd /path/to/directory

3. mkdir Command:

mkdir stands for “make directory.” It is used to create new directories.

Example

mkdir new_directory

4. rm Command

rm stands for “remove.” It is used to delete files and directories.

Example

rm file.txt

5. rmdir Command

rmdir stands for “remove directory.” It is used to delete empty directories.

Example:-

rmdir empty_directory

6. cp Command:

cp stands for “copy.” It is used to copy files and directories from one location to another.

Example:

cp file.txt /destination/path

7. mv Command:

mv stands for “move.” It is used to move files and directories from one location to another or to rename them.
Example:

mv file.txt new_location/

8. cat Command:

cat is short for “concatenate.” It is used to display the contents of a file.
Example:

cat file.txt

less Command:

less is a file viewer similar to more, but it allows backward as well as forward navigation.
Example:

less file.txt

more Command:

more is a file viewer that displays the contents of a file one page at a time.
Example:

more file.txt

head Command:

head is used to display the beginning of a file.
Example:

head file.txt

tail Command:

tail is used to display the end of a file.
Example:

tail file.txt

14. touch Command:

touch is used to create an empty file or update the timestamp of an existing file.
Example:

touch new_file.txt


15. chmod Command:

chmod stands for “change mode.” It is used to change the permissions of a file or directory.
Example:

chmod 755 file.txt

16. chown Command:

chown stands for “change owner.” It is used to change the owner of a file or directory.
Example:

chown user:group file.txt

17. chgrp Command:

chgrp stands for “change group.” It is used to change the group ownership of a file or directory.
Example:

chgrp group file.txt

18. find Command:

find is used to search for files and directories in a directory hierarchy.
Example:

find /path/to/search -name "file.txt"

19. locate Command:

locate is used to find files by name.
Example:

locate file.txt

20. du Command:

du stands for “disk usage.” It is used to display the disk usage of files and directories.
Example:

du -sh directory/

21 df Command:

df stands for “disk free.” It is used to display disk space usage and availability.
Example:

df -h

22. free Command:

free is used to display free and used memory in the system.
Example:

free -h

23. top Command:

top is used to display system processes and resource usage in real-time.
Example:

 top

24. ps Command:

ps is used to display a snapshot of current processes.
Example:

ps aux

25. kill Command:

kill is used to terminate processes.
Example:

kill PID


26. sudo Command:

sudo is used to execute a command as another user, typically the superuser.
Example:

sudo command

27 su Command:

su is used to switch user accounts or become the superuser.
Example:

su username

28. passwd Command:

passwd is used to change a user’s password.
Example:

passwd username

29. useradd Command:

useradd is used to create a new user account.
Example:

useradd username


30 userdel Command:

userdel is used to delete a user account.
Example:

userdel username

Thanks for reading. 👍👍

Hi I am Amit Kumar Thakur Experienced as s Software Developer with a demonstrated history of working in the information technology and services industry. Skilled in HTML, CSS, Bootstrap4, PHP, Laravel-9 , REST API,FB API,Google API, Youtube Api, Bitbucket,Github,Linux and jQuery. Strong engineering professional focused in Computer/Information Technology Administration and Management. Currently my profile is to Software Developer, analyze the requirement, creating frame for web application, coding and maintenance.

Related Posts

Linux Commands to Troubleshoot Performance Issues

In this tutorial we’re going to learn how to Troubleshoot Performance Issues with the CPU, RAM, disc I/O, network usage, and general responsiveness of the system. You…

Here’s a list of 50 Linux commands commonly used for troubleshooting a Linux server:

1. ping Command Tests connectivity to a remote host. 2. netstat Command Displays network connections, routing tables, interface statistics, masquerade connections, and multicast memberships. Output: – 3….

How to connect redis in laravel project ?

In this tutorial we’re going to learn how to connect redis database in laravel project. I have mentioned in step by step ini very easy way. What…

Problem 1 – laravel/passport[v11.5.0, …, v11.8.4] require league/oauth2-server ^8.2

In this tutorial we’re going to solve then error Problem 1 – laravel/passport[v11.5.0, …, v11.8.4] require league/oauth2-server ^8.2 Error :- Solutions : – Now issue has been…

Traceback (most recent call last):File “/usr/bin/pipenv”, line 33, insys.exit(load_entry_point(‘pipenv==11.9.0’, ‘console_scripts’, ‘pipenv’)())

In this tutorial i’m going to solve the issue “Traceback (most recent call last):File “/usr/bin/pipenv”, line 33, insys.exit(load_entry_point(‘pipenv==11.9.0’, ‘console_scripts’, ‘pipenv’)())” Error :- Solutions :-

Top 25 Linux Commands for Users ?

In this tutorial i’m going to share Top 50 Important Linux Command for users with example. 1. Use of ls -la command. The ls -la command is…

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x