Linux Basic Operations 1

Source: Internet
Author: User

Linux Basic Operations Command 1

Use the format for Linux commands
COMMAND [Options] [arguments parameters]

Su:switch User for switching users
SU User name
When a user password is entered for the change, and a password is entered in Linux, the command-line interface does not have an explicit
As if the input is invalid.

Type: Used to view the types of the specified command, and to determine whether the given instruction is an internal or external instruction.
Type command
Commands under Linux are divided into internal directives and external instructions, and internal instructions are transferred to the Linux system when it is loaded.
Memory, which is more efficient when called. External directives are part of the Linux system program and are not tuned when loaded
into memory, which needs to be read from the hard disk when called.

[[Email protected] ~]$ type ls
LS is aliased to ' ls--color=auto '//LS not an internal command
[[Email protected] ~]$ type cd
CD is a shell builtin//PWD are internal commands

Man: View information such as instruction help, configuration file Help, and programming help in Linux
Man option parameter
When you view command help through man, you often encounter the following symbols:
Description of symbols and meanings
[] means optional
<> expression is changeable
X|y|z that only one can be selected;
-ABC represents a mixed use of three parameters (or any two)

What to do when you view the command description manual
Space Back Page
b page Forward
Enter Backward line
K Forward Line
? Keyword: Forward search
N Next
N previous One
Use Q to Exit View status

PWD View current path

Ls:list lists files under the specified path
ls [option] path name
LS default displays the directory path that is currently located
[Email protected] ~]$ pwd
/home/wangml
[Email protected] ~]$ LS/HOME/WANGML
Code Linlin Scourse
[[email protected] ~]$ ls
Code Linlin Scourse

-L Long Format options
[[email protected] ~]$ ls-l code
Total 16
-rw-r--r--1 WANGML root April 10:22 1.c
-rw-r--r--1 WANGML Root APR 8 11:24 1.txt
-rwxr-xr-x 1 wangml Root 6421 Apr 8 11:15 a.out
Display the file information
File type
File permissions: 9-bit, per 3-bit group, rwx respectively for read write execution, which permission is not, use-to indicate
The document belongs to the main document group
File size, default unit is byte
Time stamp Timestamp
Time to access access
Modified Time Modify
Changing the time change

-H Do unit conversions
-A Show hidden files
[[email protected] ~]$ LS-A code
.  .. 1.c 1.txt a.out
Hide files begin with.
. Represents the current directory
.. Represents the parent directory

-I display the miniature node number of the file
[[email protected] ~]$ ls-i code
2236435 1.c 2236434 1.txt 2236430 a.out

-R Reverse Display file

-R Recursive recursive display
[Email protected] ~]$ ls-r/HOME/WANGML
/HOME/WANGML:
Code Linlin Scourse

/home/wangml/code:
1.c 1.txt a.out

/home/wangml/linlin:

/home/wangml/scourse:

Cd:change Directory Switch Directories
CD-Switch to the same directory as the previous one

Data: For time management, to display or modify the current system time, the interface is printed on the system time

Clock: Show Hardware time

Cal: Displaying calendar calendars

Linux Basic Operations 1

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.