当前位置:网站首页>Rhcsa note 2
Rhcsa note 2
2022-07-18 06:56:00 【zyfpkp】
A simple command
1. Command format : Master order Options Parameters ( Action object )
Complete commands and parameters : Press Tab key
Terminate the current process : Press Ctrl+C
2. View command help
(1). see bash Internal commands help :help cd
(2). command --help :cat --help
Example :cat [OPTION] . . . [FILE] . . .
namely cat You can add multiple optional options and multiple optional file parameters Count
(3) command man
To provide online help , Permissions are all users . Use man Command to access help information , convenient
practical .
[[email protected] ~]# man ls

man The structure of the help information of the command is as follows :
man Several sections of the manual
section 1: User instructions , View help for command
section 2: system call , See help for functions that can be called by the kernel
section 3: Library calls , Check out help for functions and Libraries
section 4: equipment , See help for special files ( Mainly /dev A file in a directory )
section 5: File format , Check out the help for the configuration file
section 6: game , Check out the help for the game
section 7: miscellaneous , Conventions and agreements, etc , for example Linux file system 、 Network protocol 、ASCII code And so on
section 8: System instructions , Check the help of the commands available to the system administrator
section 9: Instructions inside the kernel , Check the help of kernel related files
(4)info page
info And man It's almost the same use , Are used to query the command usage or file format . But with the man page Different yes ,info page It is to split the file data into paragraphs , Each paragraph is written on its own page , And in each page , There are also similar web pages 『 Hyperlinks 』 To jump to different pages , Each individual page is also called a node (node). However, the description file of the target data you want to query must be info Only when it is written in the format of info Special features of ( Like hyperlinks ). And this support info By default, the file of the command is placed in /usr/share/info/ In this directory
3.date command
Used to display or set the time and date of the system
Grammar format : date [OPTION]... [+FORMAT]
date Common parameters and functions in commands :

Example : according to “ year - month - Japan Hours : minute : second The day of the year Week , What quarter The time zone What day of the week ” View the current system time in the format of

4.timedatectl command
Used to set the time of the system
English full name :time date control
Grammar format : timedatectl [OPTIONS...] COMMAND ...
timedatectl Parameters and functions in the command :

Check the system time and time zone :

5. ls (list) View the files in the directory

6.file command
Used to detect the type of a given file
Grammar format :file [ -bchikLnNprsvz ] [ -f namefile ] [ -F separator ] [ -m magicfiles ] [file or folder] ...
file -C [ -m magicfile ]
7.stat command
Used to display the status information of the file .stat The output information of the command is more than ls The output of the command should be more detailed
Grammar format :stat [OPTION]… FILE…
stat The information that can be viewed by the command includes :
File: Show filename
Size: Show file size
Blocks: The total number of data blocks used by the file
IO Block:IO Block size
regular file: file type ( General documents )
Device: Equipment serial number
Inode:Inode Number
Links: Link number
Access: File permissions
Gid、Uid: Ownership of documents Gid and Uid
access time: This is our last visit ( It's just a visit , No changes ) Time of file
modify time: It means when we last modified the file
change time: Indicates the last time we changed the file properties , Including authority , size , Properties and so on
Birth time : File creation time ,crtime, However, it is found that this property linux obsolete , The current status display results are -
Parameter description :

边栏推荐
- oracle怎样转义单引号
- Faster Planner——Kinodynamic Astar详解
- 如何使用OpenCV保存.mp4格式文件
- Yotact structure diagram
- The meaning of sprint in Agile Development
- YOLACT结构图
- Implementation of sequence table in C language stack
- LeetCode 188. The best time to buy and sell stocks iv*** (double, need triple)
- Serialization and deserialization of flip word /maxqueue/ quadratic tree
- Gurobi——GRBModel
猜你喜欢
![[300 + selected interview questions from big companies continued to share] big data operation and maintenance sharp knife interview question column (4)](/img/cf/44b3983dd5d5f7b92d90d918215908.png)
[300 + selected interview questions from big companies continued to share] big data operation and maintenance sharp knife interview question column (4)

Type-C charging OTG chip (ldr6028s)

markdown学习笔记 第二章 基本语法 (markdown编辑器下显示)

Drive free USB to serial port billboard chip (ldr2001)

C语言 第十章 指针

生命游戏,25号宇宙与奋斗者

基于OSQP的二次规划

CVXPY——最新版问题

H264编码器的一种率失真优化(1)
![[cloud native] 3.4 ruoyi cloud deployment practice (Part 1)](/img/42/bd8ab0b5e51e181b71b9028bd363ad.png)
[cloud native] 3.4 ruoyi cloud deployment practice (Part 1)
随机推荐
Tips for setting dropout parameters
Typec display solution Daquan ldr6290 single C-Port desktop display solution
What is the difference between PM and Po & the Chinese meaning of PMO
翻转单词/Maxqueue/二次树的序列化和反序列化
【面试必刷101】双指针
Excel导入导出注解通用版
PD QC decoy power application IC "liderui ldr6328s" is widely used in all sizes of household appliances
[cloud native] 3.4 ruoyi cloud deployment practice (Part 1)
【云原生】3.4 RuoYi-Cloud部署实战(上)
数组和字符串赋值的问题(定义时不初始化)
游戏手柄Type-c方案,支持一边充电一边传输数据
MQ系列2:消息中间件的技术选型
C语言 第七章 预处理
MySQL index
Swin transformer, the best paper model of iccv 2021, finally started video
【300+精选大厂面试题持续分享】大数据运维尖刀面试题专栏(四)
room android sqlite
Timesformer: can you understand video by transformer alone? Another attack of attention mechanism
The meaning of sprint in Agile Development
CCTV hosts are using this wireless Lavalier microphone with fire