In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Basic system common commands
1. System related command
1.1ping tests network connectivity
1.2nmtui graphical interface configuration network card address information
1.3telnet tests whether the remote service is enabled properly.
1.4Shutdown shuts down / restarts the system
-r 5/now/0: restart the system / restart the system now
-h 5/now/0: shut down the system / shut down the system now
-c: cancel the restart or shutdown operation
1.5man
-- help help commands display command help / display profile help
1.6mount
Umount disk storage device mount command
Disk storage device uninstall command
Umount/mnt (mount point)
1.7hostname modify host name / view full host name
1,8systemctl
Systemctl start/stop/restart
Systemctl status
Systemctl get-default
Systemctl set-default multi-user.target Management Service running status start / restart / stop
Service name
Service name-View the running status of the service
View system operation mode
Set the system operation mode
1.9 ifdown Nic name (eth0)
Ifup network card name (eth0) stop the specified network card service
Start the specified network card service
Ifdown eth0&&ifup eth0
1.10 hostnamectl modify host name
Hostnamectl set-hostname xxx
1.11 df
-h
Iscpu
Free
Free-h
W View disk mount information / view disk usage
The information displayed is human readable information.
View CPU information
View memory information
View load / view login system user information
1.12 blkid displays the UUID identification information of the disk
1 export 13 is used to set environment variables
1.14 source immediately loads the environment variable file configuration information
/ etc/profile
1.15 alias View Alias Settings / set Alias
Aliass alias = "alternate command information"
1.16 unalias
Unalias aliases Unaliases Settin
1.17 which
Which cp view command file absolute path information
1.18 runlevel View system Runtime
1.19 init
Init 0 toggles system runlevel
Toggle system run level
1.20 yum
Yum install-y software name installation software command
Install the specified software
1.21 rpm
Rpm-ivh xxx.rpm installation package
1.22 uniq
Uniq-c cancels the repetitive operation of the information
Count how many times the repeated information appears
1.23 uname
Uname-a view system information
1.24 useradd create user
1,25 passwd
Passwd--stdin modifies user password
Interaction-free password modification
1.26 sz-y
Rz-y downloads linux host data to Windows host
Upload Windows host data to linux host
two。 File directory command
2.1mkdir create directory command
-p create directory command
2.2.ls list displays system data information
-d check whether the specified directory exists
-a show all data information (show hidden files)
-h the information displayed is human readable information
-l displays file detailed attribute information
2.3cd changes directories
Cd/cd~ quickly returns to the home directory of the system user
Cd.. Quickly return to the previous directory
Cd../.. Quickly return to the superior directory
Cd- quickly returns to the last directory
2.4 pwd displays the current path information
2.5touch create File
2Jing 6 cat view the contents of the file
2.7 vi Editing File contents
I enter insert mode
Wq saves and exits
Q exit directly
: q! Forced exit
2.8echo outputs the information to the screen
Echo xx > file inputs information into a file
2.9cp copy data command
-r Recursively copy data (copy command)
2.10mv move data command / rename file name
2.11rm delete data command
-r Recursively delete information
-f forcibly delete information (ignore prompts)
-rf forcefully deletes directories
2.12head view file header information (the first 10 lines are viewed by default)
Head-n specifies to look at the first few lines
2.13tail view the tail information of the file (the last 10 contents are viewed by default)
Tail-n specifies to view the next few lines
Tail-fhand Murf tracks changes in real-time view of file information
3 user management commands
3.1su switching user
Su-
3Person2id View user information / check whether the specified user exists
3.3whoami to check the user identity of the logged-in system
Common commands for advanced systems
1 swordsman command
1.1find find File command
1.2grep filtering filtered file content
1.3sed replacement modifies file content
1.4awk analyzes and processes the log files.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.