Linux Learning Diary (i)

Source: Internet
Author: User
Tags echo command

For Linux novices, the basics of getting started will be the first, and Linux commands are the most important of all.

First, we learned the use of the help command man, the man can see the function of the command and the parameters available. And how to see what's in the Help document

Name using the command

Approximate use of synopsis command parameters

Demo of the EXAMPLES command

Options command-specific available option

Then learn the common system work commands, the first is the echo command, the role of this command is to put the string or the value of the variable is displayed in the terminal.

Date command to see the effect of dates and the effect of modification time

%Y Full year

%m Month

%d Date

%H hours

%M min

%s seconds

Reboot restart the system command (default is used by the root user)

Poweroff Shutdown system Command (default for root user)

wget Download Network Files command

PS View System process status command, usually using PS aux

Top dynamic monitoring of process activity and system load information

Pidof to query the PID number value of a specified service

Kill the process used to terminate a specified PID number killall used to terminate the entire process of a specified service

Ifconfig Obtaining network card configuration and networking status information

Uname viewing system kernel and system version information

Uptime for viewing the load information of the system

Free to view usage information for system memory

Who is used to view the user terminal information of the currently logged in host
Last to view log-in records for all systems

History is used to show commands that have been executed historically

Sosreport for mobile system configuration and diagnostic information after the output of the conclusion document

PWD is used to display the working directory currently in place

CD for switching work paths

LS is used to display file information in a directory

The cat command is used to view shorter plain text files

The more command is used to view long plain text files

Head to view the first n rows of a plain text document

Tail used to view the last n rows of a plain text document or to continuously refresh content

TR is used to replace characters in a text file

WC used to count the number of lines, words, and bytes of a text file

Stat is used to view information such as the specific storage information and time of a file

Cut to extract text characters by column

Diff is used to compare the differences between multiple text documents

Touch creates a blank file and sets the file time

mkdir Creating a blank directory

CP for REPLICATION

MV for moving files or renaming files

RM for deleting files or directories

Tar for extracting or compressing files

grep is used to match keywords

Find for files

Locate the files under the user SS and copy them to the/home/tmp directory

Find/-user ss-exec cp-a {}/home/tmp/\;






This article is from the "Learn Diary of Linux" blog, please be sure to keep this source http://3378084.blog.51cto.com/3368084/1924104

Linux Learning Diary (i)

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.