Useradduser & nbsp; add passwduser & nbsp; add password ll & nbsp; & nbsp; view wenjianll-d/home & nbsp; view the current file ll-a useradd user to add users
Passwd user: Add password for user
Ll view wenjian
Ll-d/home to view the current file
Ll-a/home/user view implicit files (such as user variable files and launch scripts)
Ll-l/view/Directory
Su-switch to administrator
Ifconfig
Vim/etc/sysconfig/network-script/ifcfg-eth0 modify network properties
Vim/etc/resolv. conf DNS client configuration file
/Etc/init. d/network restart the network service
Ifconfig eth0 192.168.0.1 temporary IP address configuration
Chkconfig iptables -- list view firewall information
Service iptables stop | start to disable or restart the firewall
Cat/etc/sysconfig/network cat displays the most basic network information (system startup information)
Cat/etc/sysconfig/network-scripts system startup initialization information
Cat/etc/hosts host name ing ip hosts file
Protocols used by cat/etc/protocols hosts
Cat/etc/serverces services with different ports on the host
Route add defaut gw 192.168.1.1 add default route
Route add-host 192.168.1.2 dev eth0 add route to host method
Route add-net 192.168.0.0 netmask route 255.255.0 eth0 add to network routing method
Route del-net 192.168.0.0 netmask route 255.255.0 eth0 route deletion method
Netstat view network connections
Netstat-I Displays network interface status information
Netstat-lpe: displays information about monitoring sockets and using sockets.
Netstar-nr pure address display kernel route information
Netstat-t displays the tcp connection status
Netstat-u displays udp connection status
Hostname redhat name
Hostname display name
Arp viewing arp cache
Arp-s 192.168.1.1 00: 50: ba: 68: 84: c3 add a static IP address to bind the mac address
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service