Linux Practice Command One

Source: Internet
Author: User

Usage of 1.clock and Hwclock

[Email protected] ~]# clock--help
Hwclock-query and set the hardware clock (RTC)

Usage:hwclock [function] [options ...]

Functions:
-H | --help Show this Help
-r | --show read hardware clock and print result
--set set the RTC to the time given with--date
-S | --hctosys set the system time from the hardware clock
-W | --SYSTOHC set the hardware clock to the current system time
--systz set the system time based on the current timezone
--adjust Adjust the RTC to account for systematic drift since
The clock is last set or adjusted
-C | --compare periodically compare the system clock with the CMOS clock
--getepoch print out the kernel ' s hardware clock epoch value
--setepoch set the kernel ' s hardware clock epoch value to the
Value given with--epoch
-V | --version print out the version of Hwclock to stdout

Options:
-u | --UTC the hardware clock is kept in UTC
--localtime the hardware clock is kept in local time
-F | --rtc=path special/dev/... file to use instead of default
--directisa access the ISA bus directly instead OF/DEV/RTC
--badyear Ignore RTC ' s year because the BIOS is broken
--DATE specifies the time to which to set the hardware clock
--EPOCH=YEAR Specifies the year which is the beginning of the
Hardware clock ' s epoch value
--noadjfile does not access/etc/adjtime. Requires the use of
Either--UTC or--localtime
--ADJFILE=PATH specifies the path to the "Adjust file" (Default is
/etc/adjtime)
--test do everything except actually updating the hardware
Clock or anything else
-D | --debug Debug Mode

Hwclock–s synchronizing hardware time to System time

Hwclock–w synchronizing system time to hardware time

HWCLOCK–R Display current hardware time status

650) this.width=650; "title=" image "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; margin:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M01/72/53/wKioL1XhTCXxbbiNAAAoW4wt_ Po937.jpg "width=" 244 "height="/>
2.CD entering the specified directory

CD/skip directly to the root directory

CD etc or cd/etc into the root directory of the ETC directory before one is a relative path, the latter is an absolute path

Cd.. Return to the top level directory

3cal Bring up the calendar

CAL (1)

NAME
Cal-display a calendar

Synopsis
Cal [Options] [[[Day] month] year]

Cal Displays the current calendar

Cal year displays the calendar of the years that belong

Cal-s this month's calendar is listed by Sunday

Cal–m this month's calendar is listed by Monday

4. PWD Displays the current working directory command line under direct pwd

5. ls

NAME
Ls-list Directory Contents

Synopsis
ls [OPTION] ... [FILE] ...

Ls:list
Lists the property information for a file or directory under a specified path

Metadata: Attribute Data
Data:

ls [OPTION] ... [FILE] ...
-L: Display with long format
Drwxr-xr-x 1 root root 8 08:47. cache
D: File type
Rwxr-xr-x: Permissions, Mode
1: Number of times a file has been hard linked
Root:owner, belonging to the Lord;
Root:group, genus Group
8:size, Default is byte
23 08:47 Modify Timestamp
. cache: File name
-D: Display the directory's own properties
-h:human-readable
-A: Displays all files, including. Start hidden files
.: Current Directory
..: Parent Directory
-r:reverse, Reverse display
-r:recusive, recursive

650) this.width=650; "title=" image "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; margin:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/72/57/ Wkiom1xhsgzbigjuaaauvupy5mk067.jpg "width=" 244 "height="/>

6.which and Whereis

Find the shell command path, but Whereis will give the Help file path

650) this.width=650; "title=" image "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; margin:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/72/57/ Wkiom1xhsg2bpyclaaaufir31j8844.jpg "width=" 244 "height="/>

Stat

Stat–f File Display Status

650) this.width=650; "title=" image "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; margin:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/72/54/ Wkiol1xhtcmqfxn5aaa0zlx-jgg159.jpg "width=" 244 "height="/>

Echo Echoing command

echo [Short-option] ... [STRING] ...
Echo long-option

DESCRIPTION
Echo the STRING (s) to standard output.

-n Do not output the trailing newline

-e enable interpretation of backslash escapes

-e Disable interpretation of backslash escapes (default)

--help Display this Help and exit

echo-e hello ' \ n ' echo Hello and let line break take effect

Echo-n Nihao does not break the line

650) this.width=650; "title=" image "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; margin:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/72/54/ Wkiol1xhtcmtz7vjaaa-2u3kus8341.jpg "width=" 244 "height="/>

W Who and WhoAmI

W shows who logged in and what the system is doing

Who shows the login and login time and login address of the user logged in to the system

WhoAmI Show users logged on to the system

Shutdown,halt,poweroff System shutdown Command

Reboot System restart command

Linux Practice Command One

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.