One of several Linux command series per day

Source: Internet
Author: User


A few simple commands related to the catalog:

1.ls

LS is the abbreviation of list, so it is list output of listing directory and file

Common parameters:

-l List Details

-H converts the unit from the default byte to K, M, G

-a lists all files and directories that are hidden

Where. Represents the current directory: Represents the parent directory

-R (reverse) reverse display

-R (recursion) recursive display

-I display inode number

2.pwd (print working direction)

Print current directory

3.CD (Chang directory)

CD ~ Open Home Directory

CD ~username Open the home directory for the specified user

4.mkdir (Make directory)

-P Recursive creation

-V Show More information

5.rmdir (remove directory)

-P Recursive Delete (can only be deleted if the directory is empty)


Two. Several commands concerning the order

1.type + command

View the type of the current command (commands are divided into built-in commands and external commands)

2.help + built-in commands

See Help for built-in commands

3.man + command

See Help for commands

4.whatis + command

View the chapters of the Command in man


Three. Print commands

1.echo

-E escapes certain characters (\n,\t,\b,\r)

-N No Line break

2.print

Direct output, default No line break, can be directly escaped


Four. Several time-related commands (the difference between date,clock,hwclock and contact)

1.date

viewing system time Information

Date +%d Show Month Day year

Date 05192310 changed on May 19 23:10

2.clock

Viewing hardware time

3.hwclock

Viewing the hardware clock (time in CMOS)

-W: Write system time to hardware time

-S: Write hardware time to system time


This article is from the "11005698" blog, please be sure to keep this source http://11015698.blog.51cto.com/11005698/1785024

One of several Linux command series per day

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.