Search

Tuesday, February 17, 2026

Linux CLI Commands

 Linux CLI Commands

When using Linux there are some basic Command Line Commands that are used for various functions in Linux. There are some basic commands including ls, cp, mv, and cd. Other commands that are helpful include grep and man that get data by searching for the string in a file. The command man is short for manual pages; this gives information about most commands. 

The command ls stands for list directory and can be used with flags like the -la which allows for a long listing format and shows all files and folders in the directory. When using the cp command, you can copy a file or folder into another directory or copy a file in the same directory. With the mv command you can move a file or folder from one directory to another. The cd command is for changing the directory that you are in.

Basic Commands

There are other Linux CLI commands like pwd, whoami, and ifconfig that show the present working directory, what the current user is, and the network interface configuration of the device which includes IP addresses. Some of the other basic Linux commands include mkdir that makes directories and touch which makes empty files. These three commands are used more in cybersecurity instances but remain essential to anyone that wants to learn Linux.

Display Commands

Commands in Linux also include cat, head, tail, more and less. When using the command cat you can display files content. It is the same when using head and tail which show the beginning of a file or the end of a file. The commands more and less are used to go through pages on long files with less being more with better functionality.

Conclusion

There are more commands, but these will help you for the most part. There are some commands like rm and sudo that need to be used with caution; however, you can look them up along with other Linux commands. Using Command Line Interface commands on Linux devices is something that you will have to work on to get better at.

Each of these commands can be used with modifiers or flags and are sometimes similar so look them up with the man pages to get more familiar with them. There are two other commands that can be used which are help and info which are similar to man. There are additional commands that can be used, however getting more repetition is something that you will need to work on.

No comments:

Post a Comment