1、把当前目录下file1文件移动到上两级目录的dic目录下的命令是?
[root@centos8 ~]#mv file1 ../../dic
2、为/lib64/libc.so创建一个软连接/usr/lib64/libc.so,命令是?
[root@centos8 ~]#ln -s /lib64/libc.so /usr/lib64/libc.so
3、在当前目录下建立dic目录的命令是?
[root@centos8 ~]#mkdir dic
4、如何查看Linux硬盘使用情况,分别使用MB、KB显示?
[root@centos8 ~]#df -k [root@centos8 ~]#df -m
5、将/root下文件列表,显示成一行,并文件名之间使用空格隔开
[root@centos8 ~]#ls -x anaconda-ks.cfg dead.letter digit.txt excludefile includefile initial-setup-ks.cfg rev_multi.sh
6、计算1+2+3+...+99+100的总和?
[root@centos8 ~]#echo {1..100} | tr ' ' + | bc 5050
7、将指定文件中的0-9分别替换成a-j
[root@centos8 ~]#cat file 0 1 2 3 4 5 6 7 8 9 [root@centos8 ~]#cat file | tr [0-9] [a-j] a b c d e f g h i j
8、将/etc/issue文件中的内容转换为大写后保存至/tmp/issue.out文件中
[root@centos8 ~]#cat /etc/issue | tr [a-z] [A-Z] > /tmp/issue.out [root@centos8 ~]#cat /tmp/issue.out S KERNEL R ON AN M