Some of the shell commands that you use

Source: Internet
Author: User
Tags save file

"System common Commands"

passwd [hostname] Change Password

USERADD [hostname] adding users

Su- switch to root user

SSH [hostname] SSH connection

cd [directory] into the directory directory

sudo chown [username] assigns appropriate permissions to the user

CTRL + C stops the current command (such as ping)

VI [filename] Edit a file with the Vim editor

I text Edit Status

: E exit editor

: w Save File

:!q quits but does not save

ESC command line status

Cat [filename] View file contents

"Network Common Commands"

ifconfig view local network card status

"Download and install command"

wget [url] URL Way to download

apt-get Install [name] apt-get Mode installation

RPM-IVH jdk-7u7-linux-i586.rpm rpm command installation

Tar xvf [tar-file] unzip the Tar-file

"File Operations Command"

mkdir [directory] Creating directory Directories

CP [File] [path] copy file to path

MV [file] [path] moves file to Path

RM [File] Delete file files

Some of your favorite shell commands

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.