A variety of tips under Linux

Source: Internet
Author: User

Start the Xwindow interface

#startx

Start the second Xwindow interface

#startx--: 1 #启动第三个界面使用: 2 and so on!

View and disconnect a terminal

#w

#skill-9 PTS/2 (this is the terminal name)

Kill all processes for a user

#skill [-9] User name

#pkill [-9]-u user name

View all process numbers for a command/program

#pgrep command name

Tips

Modify the default color for the folder name and file name displayed by the LS command in Linux:

#修改/etc/dir_colors File

650) this.width=650; "Style=" background-image:none; border-right-0px; margin:0px; padding-left:0px; padding-right:0px; border-top-width:0px; border-bottom-width:0px; border-left-width:0px; padding-top:0px "title=" image "border=" 0 "alt=" image "src=" http://img1.51cto.com/attachment/201407/21/7628670_ 140591002282gg.png "width=" 244 "height=" "/>"

Control of any machine at the remote end in a graphical interface

2#xinit;xhost+

1#export display= "x.x.x.x:x" (ip:port-----The ip,port of the host 2 is the Xwindow number, referring to the first Xwindow)

1#startkde or Launch Gnome

command to turn off system power

#halt-PF

Let the modified Inittab file take effect immediately without rebooting the system

#init Q

HDD to copy

#dd IF=/DEV/SDA of=/dev/sdb bs=1024 [count=xxx]

Automatic loading module

#grep Modprobe/etc/rc.d/rc.sysinit

#modprobe-C automatically reads the/etc/modprobe.conf and loads the modules in it.

Pam mechanism

Xwindow

A variety of tips under Linux

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.