Linux command notes

Source: Internet
Author: User

CD: Transfer directory
cd/a/b (transfer current directory to/a/b)

Cat: Commands are commands for viewing the contents of the Ubuntu Chinese text file
Cat/etc/shadow View All Users
The cat/proc/cpuinfo is used to view the computer's CPU information.
Cat/proc/meminfo is used to view the internal information of a computer.
Cat/etc/issue View version information for Ubuntu.

Chown: Change the owner of the specified file to the specified user or group
chown [Options] ... Owner [: [Group]] file ...
-R handles all files in the specified directory and its subdirectories

mkdir: Creating a Directory
mkdir xxx (established XXX)
Mkdir-p A/b (set up directory A, sub-directory B)

MV: Move a file or rename a file
MV source file or directory destination file or directory

Source/etc/environment

Tar: Used to store or expand a tar archive file
Tar xvzf xxx.gz (expand xxx.gz)
Tar xvzf xxx.gz-c/a/b/c (expand xxx.gz and place in/a/b/c directory)

wget: Download file
wget [URL] (download part)
Wget-c [URL] (breakpoint continuation)
Wget-i download.txt (bulk download)

RM: Deleting files
Rm-f--force Ignore non-existent files, never give hints
Rm-r--recursive instructs RM to recursively delete all directories and subdirectories listed in the parameters

Find a process based on port 8080
NETSTAT-ANP | grep 8080

Kill 7913 Processes
Kill-9 7913

Transferring files
SCP jdk-7u75-linux-x64.tar.gz [Email protected]:/home/mopon

Implementing a Refresh Log
Tail-f Catalina.out

Connecting to a server
SSH [email protected]-P 2234
Yxtkf43

View the Linux kernel version number
1, Cat/proc/version
2, Uname-a

View Linux Version information
Lsb_release-a

MySQL Installation
sudo apt-get install mysql-client-core-5.5
sudo apt-get install Mysql-server
sudo apt-get install mysql-client

Linux command notes

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.