Linux first day

Source: Internet
Author: User

To start the graphical interface:

#startx &


Adjust language to Chinese (Medium character encoding)

#localectl-H View Help

#localectl List-locales to see what languages are available

#localectl Set-locale Lang=zh_cn.utf8

#locale View the current language environment


SSH login: Remote connection: SSH protocol: Secure Shell

See if SSH port 22 is open

TCP Numeric listening #ss-TNL TCP value Monitoring

To see if the system is listening on port 22nd of the TCP protocol: 22


View IP Address:

#ifconfig

#ip Addr List


See if the firewall is turned on:

#iptables-L-N View firewall open

#iptables-F Empty firewall (only valid for current)

#systemctl Stop Firewalld.service stopping the Firewall service (currently active)

#systemctl Disable Firewalld.service Disabling the Firewall service (permanently active)


#service iptables Stop (CENTOS6 currently active)

#chkconfig iptables off (centos6 disabled)

# chkconfig iptables off (set auto-start to OFF)

# chkconfig--del iptables (remove boot auto start)


View the currently used shell

#echo $SHELL


Terminal switching:

Ctrl+alt +f[1-6] Virtual Terminal 6

Ctrl+alt +f7 Graphics Terminal (CENTOS6 fixed)

Centos7 the virtual terminal on which the virtual terminal is located.

Physical Terminal: Console

Virtual Terminal:TTY

Serial Terminal: TTYs

Pseudo Terminal: Through the remote terminal is pseudo Terminal Pty


One of the philosophical ideas of Linux: all documents.

Physical Terminal files:/dev/console

Virtual Terminal files:/dev/tty#

Serial Terminal file:/dev/ttys#

Pseudo Terminal file:/dev/pts/#




Linux first day

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.