Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Which commands are commonly used in linux?

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Today, I will talk to you about what linux commonly used commands refer to, which may not be well understood by many people. in order to make you understand better, the editor has summarized the following contents for you. I hope you can get something according to this article.

Linux common commands

1. View directory command

Ls views the directory information under the current path

Tree displays the directory in a tree

Pwd view the current directory path

Clear knows the terminal content (shortcut key Ctrl + L)

Ctrl+shift+ "+" enlarge window font

Ctrl + "-" shrink window fonts

2, switch directory command

Change the cd directory to the specified directory

Cd ~ switch to the current user's home directory (user's home directory)

Cd.. Switch to the current directory

Cd-switch to the previous directory

3. Absolute path and relative path

The absolute path usually starts with the root directory / the whole path information is complete.

The relative path is convenient and quick to use with the current path as the reference path.

4. Create and delete file and directory commands

Touch create file (cannot create file with the same name)

Mkdir create directory (folder)

Rm deletes the specified file

Rm directory-r delete non-empty directories (- r recursively delete directories and contents)

Rmdir can only delete empty directories

5. Copy and move files and directories commands

Cp copy copy file, copy directory (- r)

Mv moves files, directories, renaming

6. Terminal command format

Command [- options] [parameter]

After reading the above, do you have any further understanding of what common linux commands refer to? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report