Linux operation instructions

Source: Internet
Author: User

Linux operation instructions

Ctrl+alt+f3 into the text interface

CTRL+ALT+F1 into the Desktop interface

mkdir Create File command

VI Edit File command

CD Switch Directory command

Cd.. Return to Parent Directory

LS View folder under File command

Wq Save

q! Cancel

Setup Enter settings (Turn off firewall settings IP address)

Reboot restart System

Poweroff-n shutting down the system

Vi/etc/selinux/config Enter the file (firewall off)

Change selinux=disabled

Cat View Commands

Move File command

Mv

Move file: MV file name move destination file name

Rename file: MV FileName modified file name

Example: MV Oldfilename NewFileName (Oldfilename is the old file name, NewFileName is the new filename)

Delete command

Rm

-R No matter how many levels of directory, delete

-F Force Delete

-RF Super Force Delete

View process Commands

Ps

-a displays the processes under the current terminal, including other users ' programs

-U Displays program status in a user-oriented format

-X displays so the program, not the terminal to distinguish

Ps-aux

Ps-ef

Querying the specified thread

Ps-ef | grep #查询指定线程

End Process Command

Kill

Example: Kill-9 324

Network card settings

Vi/etc/sysconfig/network-scripts/ifcfg-eth0 Network Port settings

Onboot=yes (cannot use NIC if not changed to Yes)

Bootproto=static Change to static IP

Ifconfig Viewing network card information

Service Network restart restart NIC

Query System version number command

Uname-a

Getconf Long_bit

Delete File command

Linux Delete directory is very simple, many people are still accustomed to use rmdir, but once the directory is not empty, it fell into deep distress, now use the RM-RF command.

Direct RM is available, but add two parameters-rf that is: RM-RF directory name

-R is recursive down, no matter how many levels of directory, delete

-F is directly forcibly deleted, without any hint of meaning

The system executes the Linux script

chmod +x./test.sh #使脚本具有执行权限

./test.sh #执行脚本

Unzip command

TAR-ZXVF #解压缩命令

Linux operation instructions

Related Article

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.