当前位置:网站首页>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.
边栏推荐
- go 指针
- Although the volume and price fall, why are the structural deposits of commercial banks favored by listed companies?
- CloudCompare——点云切片
- Concurrent performance test of SAP Spartacus with JMeter
- RHCSA9
- HiEngine:可媲美本地的云原生内存数据库引擎
- 关于 SAP UI5 floating footer 显示与否的单步调试以及使用 SAP UI5 的收益
- Put functions in modules
- mysql econnreset_ Nodejs socket error handling error: read econnreset
- 使用Dom4j解析XML
猜你喜欢

Pycharm installation third party library diagram

Changing JS code has no effect

Concurrent performance test of SAP Spartacus with JMeter

SAP UI5 ObjectPageLayout 控件使用方法分享
![[Nacos cloud native] the first step of reading the source code is to start Nacos locally](/img/f8/d9b848593cf7380a6c99ee0a8158f8.png)
[Nacos cloud native] the first step of reading the source code is to start Nacos locally

SAP UI5 DynamicPage 控件介紹
![[cloud native] event publishing and subscription in Nacos -- observer mode](/img/0f/34ab42b7fb0085f58f36eb67b6f107.png)
[cloud native] event publishing and subscription in Nacos -- observer mode

SAP SEGW 事物码里的 ABAP 类型和 EDM 类型映射的一个具体例子

What is the difference between Bi software in the domestic market

函数传递参数小案例
随机推荐
Binder通信过程及ServiceManager创建过程
How to choose note taking software? Comparison and evaluation of notion, flowus and WOLAI
函数传递参数小案例
SAP UI5 DynamicPage 控件介紹
简单上手的页面请求和解析案例
无密码身份验证如何保障用户隐私安全?
STM32 and motor development (from architecture diagram to documentation)
Navigation property and entityset usage in SAP segw transaction code
Pandora IOT development board learning (HAL Library) - Experiment 7 window watchdog experiment (learning notes)
Rocky基础知识1
C# 对象存储
It's too convenient. You can complete the code release and approval by nailing it!
Introduction to sap ui5 dynamicpage control
【每日一题】1200. 最小绝对差
【Hot100】34. 在排序数组中查找元素的第一个和最后一个位置
#从源头解决# 自定义头文件在VS上出现“无法打开源文件“XX.h“的问题
Lepton 无损压缩原理及性能分析
Actual combat simulation │ JWT login authentication
DataPipeline双料入选中国信通院2022数智化图谱、数据库发展报告
leetcode:221. Maximum square [essence of DP state transition]