Some common Shell commands and common Shell commands

Source: Internet
Author: User
Tags create directory

Some common Shell commands and common Shell commands

Common system commands]

Passwd [hostname]Change Password

Useradd [hostname]Add User

Su-Switch to the root user

Ssh [hostname]Ssh connection

Cd [directory]Go to the directory

Sudo chown [username]Grant corresponding permissions to users

Ctrl + cStop the current command (such as ping)

Vi [filename]Use the vim editor to edit files

IText editing status

: EExit Editor

: WSave files

:! QExit but not save

EscCommand Line status

Cat [filename]View File Content

Common network commands]

IfconfigView local Nic status

[Download and install commands]

Wget [URL]URL download

Apt-get install [name]Apt-get Installation

Rpm-ivh jdk-7u7-linux-i586.rpmRpm command Installation

Tar xvf [tar-file]Extract tar-file

[File Operation Command]

Mkdir [directory]Create directory

Cp [file] [path]Copy file to path

Mv [file] [path]Move the file to the path

Rm [file]Delete file

Process command]

Kill-9 [pid]Kill a process whose process number is pid.

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.