当前位置:网站首页>Rocky基础命令3
Rocky基础命令3
2022-07-05 12:45:00 【51CTO】
1、命令名称:ln
命令所在路径:/usr/bin/ln
执行权限:所有用户
语法:ln [-s] 源文件 链接
-s 建立软链接(类似windows里的快捷方式)
功能描述:建立链接文件(默认不加-s创建硬链接)
举例:
[[email protected] <sub>]
#ln anaconda-ks.cfg a #创建硬链接,链接数会增加1
[[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
-rw
-r
--r
--.
1 root root
1728 Jul
2
10:52 initial-setup-ks.cfg
[[email protected] <sub>]
#ln -s anaconda-ks.cfg b #创建软链接
[[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、命令名称:tr
命令所在路径:/usr/bin/tr
执行权限:所有用户
语法: tr [-sdct] 第一个字符集 [第二个字符集]
-s 去重
-d 删除匹配 ”第一个字符集“ 的字符
-c 除去包含 ” 第一个字符集 “ 外的字符都将由 “ 第二个字符集” 的最后一个字符替换
-t 将 “第一个字符集 ” 替换为 “ 第二个字符集” ,位数按第一个字符集确定
功能描述:转换和删除字符
举例:
[[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.
边栏推荐
- 函数的默认参数&函数参数的多种方法
- A deep long article on the simplification and acceleration of join operation
- How to protect user privacy without password authentication?
- 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)
- Comprehensive upgrade of Taobao short video photosynthetic platform
- SAP UI5 FlexibleColumnLayout 控件介绍
- SAP SEGW 事物码里的 ABAP 类型和 EDM 类型映射的一个具体例子
- Difference between JUnit theories and parameterized tests
- Run, open circuit
猜你喜欢

使用 jMeter 对 SAP Spartacus 进行并发性能测试

Introduction to sap ui5 flexiblecolumnlayout control

A few years ago, I outsourced for four years. Qiu Zhao felt that life was like this

CVPR 2022 | single step 3D target recognizer based on sparse transformer

stm32和电机开发(从架构图到文档编写)

leetcode:221. 最大正方形【dp状态转移的精髓】

RHCAS6

【Nacos云原生】阅读源码第一步,本地启动Nacos

Kotlin variable
![[cloud native] event publishing and subscription in Nacos -- observer mode](/img/0f/34ab42b7fb0085f58f36eb67b6f107.png)
[cloud native] event publishing and subscription in Nacos -- observer mode
随机推荐
非技术部门,如何参与 DevOps?
MySQL giant pit: update updates should be judged with caution by affecting the number of rows!!!
Talk about my drawing skills in my writing career
Install rhel8.2 virtual machine
RHCSA1
将函数放在模块中
Didi open source Delta: AI developers can easily train natural language models
Discussion on error messages and API versions of SAP ui5 getsaplogonlanguage is not a function
RHCSA4
RHCSA3
SAP SEGW 事物码里的导航属性(Navigation Property) 和 EntitySet 使用方法
深度长文探讨Join运算的简化和提速
#yyds干货盘点# 解决名企真题:搬圆桌
研究:数据安全工具在 60% 的情况下无法抵御勒索软件
HiEngine:可媲美本地的云原生内存数据库引擎
Alipay transfer system background or API interface to avoid pitfalls
奔跑,开路
LeetCode20.有效的括号
Simply take stock reading notes (3/8)
The Research Report "2022 RPA supplier strength matrix analysis of China's banking industry" was officially launched