当前位置:网站首页>Rocky basic command 3
Rocky basic command 3
2022-07-05 13:11:00 【51CTO】
1、 Command name :ln
Command path :/usr/bin/ln
Executive authority : All users
grammar :ln [-s] Source file link
-s Build soft links ( similar windows Shortcuts in )
Function description : Create a link file ( The default without -s Create a hard link )
give an example :
[[email protected] <sub>]
#ln anaconda-ks.cfg a # Create a hard link , The number of links will increase 1
[[email protected]8-1 </sub>]
#ll
total
12
-rw
--
--
--
-.
2 root root
1438 Jul
2
10:43 a
-rw
--
--
--
-.
2 root root
1438 Jul
2
10:43 anaconda-ks.cfg
-rw
-r
--r
--.
1 root root
1728 Jul
2
10:52 initial-setup-ks.cfg
[[email protected] <sub>]
#ln -s anaconda-ks.cfg b # Create soft link
[[email protected] </sub>]
#ll
total
12
-rw
--
--
--
-.
2 root root
1438 Jul
2
10:43 a
-rw
--
--
--
-.
2 root root
1438 Jul
2
10:43 anaconda-ks.cfg
lrwxrwxrwx.
1 root root
15 Jul
4
20:54 b
-> anaconda-ks.cfg
-rw
-r
--r
--.
1 root root
1728 Jul
2
10:52 initial-setup-ks.cfg
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
2、 Command name :tr
Command path :/usr/bin/tr
Executive authority : All users
grammar : tr [-sdct] First character set [ Second character set ]
-s duplicate removal
-d Delete match ” First character set “ The characters of
-c Remove the containing ” First character set “ All characters outside will be written by “ Second character set ” Replace with the last character of
-t take “ First character set ” Replace with “ Second character set ” , The number of digits is determined by the first character set
Function description : Converting and deleting characters
give an example :
[[email protected] <sub>]
#tr a-z A-Z
abcdefg
ABCDEFG
[[email protected] </sub>]
#df
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs
885060
0
885060
0% /dev
tmpfs
914116
0
914116
0% /dev/shm
tmpfs
914116
9300
904816
2% /run
tmpfs
914116
0
914116
0% /sys/fs/cgroup
/dev/sda2
31441920
5629848
25812072
18% /
/dev/sda1
506528
244712
261816
49% /boot
tmpfs
182820
0
182820
0% /run/user/0
[[email protected] <sub>]
#df | tr -s ' ' %
Filesystem%1K-blocks%Used%Available%Use%Mounted%on
devtmpfs%885060%0%885060%0%/dev
tmpfs%914116%0%914116%0%/dev/shm
tmpfs%914116%9300%904816%2%/run
tmpfs%914116%0%914116%0%/sys/fs/cgroup
/dev/sda2%31441920%5629848%25812072%18%/
/dev/sda1%506528%244712%261816%49%/boot
tmpfs%182820%0%182820%0%/run/user/0
[[email protected] </sub>]
#tr -d abc < /etc/fstab
#
# /et/fst
...
[[email protected] <sub>]
#tr -t etc ETC < /etc/fstab
#
# /ETC/fsTab
# CrEaTEd by anaConda on SaT Jul 2 02:32:29 2022
...
[[email protected] </sub>]
#tr -c wangdayu a
abcdefg
aaadaaga
[[email protected] <sub>]
#tr -c wangdayu 0
wangxiaochun
wang00a000un0
[[email protected] </sub>]
#tr -c wangdayu 011
wangxiaochun
wang11a111un1
[[email protected] ~]
#tr -c wangdayu 011
wangxiaochun
wang11a111un1
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
- 19.
- 20.
- 21.
- 22.
- 23.
- 24.
- 25.
- 26.
- 27.
- 28.
- 29.
- 30.
- 31.
- 32.
- 33.
- 34.
- 35.
- 36.
- 37.
- 38.
- 39.
- 40.
- 41.
- 42.
- 43.
- 44.
- 45.
- 46.
边栏推荐
- SAP UI5 DynamicPage 控件介绍
- Lb10s-asemi rectifier bridge lb10s
- 使用 jMeter 对 SAP Spartacus 进行并发性能测试
- How to choose note taking software? Comparison and evaluation of notion, flowus and WOLAI
- RHCSA4
- 逆波兰表达式
- Rocky基础命令3
- About the single step debugging of whether SAP ui5 floating footer is displayed or not and the benefits of using SAP ui5
- Laravel document reading notes -mews/captcha use (verification code function)
- Natural language processing series (I) introduction overview
猜你喜欢

How to protect user privacy without password authentication?

关于 SAP UI5 getSAPLogonLanguage is not a function 的错误消息以及 API 版本的讨论
![[cloud native] use of Nacos taskmanager task management](/img/ad/24bdd4572ef9990238913cb7cd16f8.png)
[cloud native] use of Nacos taskmanager task management

量价虽降,商业银行结构性存款为何受上市公司所偏爱?

Lb10s-asemi rectifier bridge lb10s

Reverse Polish notation

Detailed explanation of navigation component of openharmony application development

解决 UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xa2 in position 107

Small case of function transfer parameters

【每日一题】1200. 最小绝对差
随机推荐
Talk about my drawing skills in my writing career
Compile kernel modules separately
Rocky basics 1
爱可生SQLe审核工具顺利完成信通院‘SQL质量管理平台分级能力’评测
【Hot100】33. 搜索旋转排序数组
【每日一题】1200. 最小绝对差
Cf:a. the third three number problem
峰会回顾|保旺达-合规和安全双驱动的数据安全整体防护体系
碎片化知识管理工具Memos
国际自动机工程师学会(SAE International)战略投资几何伙伴
【Hot100】34. 在排序数组中查找元素的第一个和最后一个位置
Natural language processing from Xiaobai to proficient (4): using machine learning to classify Chinese email content
Solve Unicode decodeerror: 'GBK' codec can't decode byte 0xa2 in position 107
SAP SEGW 事物码里的 Association 建模方式
《2022年中国银行业RPA供应商实力矩阵分析》研究报告正式启动
155. Minimum stack
初次使用腾讯云,解决只能使用webshell连接,不能使用ssh连接。
leetcode:221. Maximum square [essence of DP state transition]
Word document injection (tracking word documents) incomplete
先写API文档还是先写代码?