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

How to comprehensively introduce Linux terminal commands

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

In this issue, the editor will bring you a comprehensive introduction of Linux terminal commands. The article is rich in content and analyzed and described from a professional point of view. I hope you can get something after reading this article.

Here are some Linux terminal commands, we must memorize these terminal commands, it will save a lot of time to find the usage of these commands and improve work efficiency.

Program running class

1. Query command: whereis command name

two。 Run the X-Window program in the background: program name &

3. Forcibly exit the X-Window program: Ctrl Alt Backspace

4. View help:

(1) Concise help: command name-- help | less

(2) more help: man command name

(3) info command name

(4) help command name

5. View the system path: echo $PATH

6. View the current shell stack: echo $SHLVL

7.

< / >

: input / output redirection; |: the input on the left of the pipe is the right input of the pipe.

User account class

1. Add user account number: (1) user name: adduser user account name

(2) set password: passwd user account name

two。 Delete user account: userdel user account name

3. Add user group: groupadd user group name

4. Delete user group: groupdel user group name

5. Suspend user account: passwd-l user account name

6. Restore terminated account: passwd-u user account name

7. Permission setting

(1) chmod-a | u | g | o |-| = r | w | x file / directory name

Among them: a muri-all users (all); Umai-local users (user); gmure-user group (group); Omai-other users (other users)

-- add permissions;-- delete permissions; =-- set permissions

File: RMY-read-only permission (read); WMY-write permission (write); XMY-execute permission (execute)

Directory: RMY-allows files and subdirectories under the column directory; WMY-allows the generation and deletion of files under the directory; XMY-allows access to the directory

(2) chmod xxx file / directory name

Among them: execute=1;write=2;read=4

X values: 0Mui-do not have any permissions (common); 1Mui-can only execute (uncommon); 2Mutual-can only write (not common); 3Mube-can only write and execute (uncommon); 4Mel-read-only (common); 5MUE-read and execute (common); 6MUE-read and write (common); 7Mel-read. Write and execute

Vi editing class

1. Enter the command mode: (1) insert I; (2) open 0; (3) modify c; (4) replace r; (5) replace s

two。 Enter full-screen editing mode after (1).

3. Command mode-- > edit mode (aploi); edit mode-- > command mode (Esc); command mode-- > last line mode (:).

4.:w/w newfile save

5.:q/q! Exit iv;:wq Save exit

Network service

1. Display network interface parameters: ifconfig

two。 Show system email: mail

3. Start / terminate the web service: httpd-k start | stop | restart

4. View network status: (1) online status: ping xxx.xxx.xxx.xxx

(2) display network status: netstat, where: all sockets;-l== of options:-a== contains network devices;-nails = digital IP

-TCP sockets;-u== = other information;-ringing = routing table;-tasking = column only TCP sockets;-u== only column UDP sockets;-w== only column raw sockets

-x columns = unix Domain sockets only

Other classes

1. Display 3D information of video card: glxinfo and glxgears

You need to use the rpmbuild command plus the-- rebuild parameter. Such as rpmbuild-- rebuild * * .src.rpm. Then look under / usr/src/

Install iso program under 3.FC3: system-config-packages-- the directory where isodir=iso is located

Install iso program under RH: redhat-config-packages-- the directory where isodir=iso is located

The above is the editor for you to share how to comprehensively introduce the Linux terminal commands, if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

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