In this article we are going to discuss about basic command in Linux.

1. mkdir :- To make a directory in linux operating system.

2. cat:- To create and view a file.

2. pwd command:- pwd command for find out the path of the current working directory.

4. cd command:- to change current directory in another directory.

5. ls command :- To display the content of current directory.

6. cp command :- To copy directory or files from one directory to other.

7. mv command :- To move directory or files from one directory to other and rename a file and directory.

8. rm command :- To delete of remove the files and directory from server.

9. touch command :- The touch command allows you to create a blank new file through the Linux command line.

10. locate command :- this command is used for locate a files just like you use search in windows.

11. grep command :- This command is used for to found exact text from a file.

12. df command :- This command is used to find disk usage of your system and server.

13. du command :- This command is used for check disk space consuming of directory and file.

14. head command :- The head command displays the first lines of any text file.
It will display the first ten lines by default, but you can change this number to your liking.
For example, if you only want to see the first five lines of a filename.ext, use head -n 5 filename.ext.

15. tail command :- The tail command performs a similar function to the head command, but instead of displaying the first ten lines of a text file, it displays the last ten lines. Tail -n filename.ext., for example.

16. tar command :- The tar command is the most commonly used command for archiving multiple files into a tarball, which is a common Linux file format similar to zip format, with compression optional.

This command is quite complex, with a long list of functions including adding new files to an existing archive, listing the content of an archive, extracting content from an archive, and many more. To learn more about other functions, look at some real-world examples.

17. chmod command :- Another Linux command is chmod, which is used to change the read, write, and execute permissions of files and directories.

18. chown command :- All files in Linux are owned by a specific user. The chown command allows you to change or transfer file ownership to the specified user.

19. ping command :- To check your server connectivity, use the ping command. For example, entering ping will check whether you can connect to Google and also measure the response time.

20. wget command :- The Linux command line is extremely useful; you can even use the wget command to download files from the internet. Simply type wget followed by the download link to do so.

21. uname command :- The uname command, which stands for Unix Name, will display detailed information about your Linux system, such as the machine name, operating system, kernel, and so on.

22. top command :- The top command, which is a terminal equivalent to Task Manager in Windows, will display a list of running processes as well as how much CPU each process is using. Monitoring system resource usage is very useful, especially knowing which processes should be terminated because they consume too many resources.

23. history command :- When you’ve been using Linux for a while, you’ll notice that you can run hundreds of commands every day. As a result, running the history command is especially useful if you want to go over the commands you’ve previously entered.

24. hostname command :- Simply type hostname to find out the name of your host/network. Adding a -I to the end will display your network’s IP address.

25. man command :- Are you perplexed by the function of certain Linux commands? Don’t worry; using the man command in Linux’s shell will teach you how to use them. Entering man tail, for example, will display the tail command’s manual instructions.

Basic Linux commands enable users to complete tasks quickly and efficiently. Some of the basic commands may take some time to remember, but nothing is impossible with a lot of practice.

Finally, knowing and mastering these fundamental Linux commands will undoubtedly benefit you. Best wishes!