In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
After centos7 adds the hard disk, directly execute the following statement, you can fdisk-l view the hard disk to join the system.
Echo "- -"
< /sys/class/scsi_host/host2/scan 文件有两类数据 元数据:metadata 数据:data [root@localhost ~]# stat /etc/issue File: '/etc/issue' Size: 79 Blocks: 8 IO Block: 4096 regular file Device: 802h/2050d Inode: 134299792 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2016-07-26 19:19:26.971986040 +0800 Modify: 2016-07-23 00:23:32.282986193 +0800 数据 Change: 2016-07-23 00:23:32.282986193 +0800 元数据 Birth: 有些文件删不了时,可以用绝对路径删除 rm /root/-h -f b 文件有缓存 dd if=/dev/zero of=/root/f123 bs=1k count=1bs块大小 count 块数 rpm -ivh hexedit-1.2.13-5.el7.x86_64.rpm 查看二进制dex hexdump /root/f1 hexdump -v /root/f1 以0,1显示 hexedit /root/f1修改二进制 windows 转换 linux 文件 dos2unix f4.txt 去掉window下一些符号,hexdump -c f4.txt linux文件转换window文件 unix2dos f4.txt 调试 rpm -ivh dos2unix [root@localhost ~]# hexdump -v f1 0000000 0a61 0a62 0a63 000a 0000007 [root@localhost ~]# hexdump -v f123 0000000 0d61 620a 0a0d 0063 0000007 [root@localhost ~]# unix2dos f123 unix2dos: converting file f123 to DOS format ... [root@localhost ~]# hexdump -v f123 0000000 0d61 620a 0a0d 0063 0000007 [root@localhost ~]# 两个应用程序通过ip与端口确定: scoket: ip + port pwd 查看当前路径 -p 查看物理路径 pwd -P 绝对路径 相对路径 ./ 当前路径 ./test.sh 在/etc/sysconfig位置查看/etc/issue cat ../issue cd -P 切换到物理目录 回到家目录 cd ~ cd xiong cd - 切换到刚才目录 ls 命令 ls结果排序是按字符排序的 [root@localhost opt]# clear [root@localhost opt]# touch 1 22 33 11 adddd [root@localhost opt]# ls 1 11 22 33 adddd err.log rh ls ---time=atime /root 读文件带来些io cat /root/file 在centos7 是不进行atime时间修改,提供io的能力。一天以后,读时会改变, atime old mtime chattr +A 文件 文件加锁 chattr -A 文件 文件解锁 文件通配符 *匹配0个或者任一个字符 ?匹配任意个一个字符 ~ 匹配工作目录 ~+当前目录 或者 ./ ~- 回到上一个目录,或者 ~- [a-z] 匹配范围内的单个字符,如[0-9] ,选择[ad]a或者d。 可以有大写字母 目录排序 a A b 特别要注意 [root@localhost test]# ll f[A-C]* -rw-r--r--. 1 root root 0 Jul 27 14:31 fA.log -rw-r--r--. 1 root root 0 Jul 27 14:31 fA.txt -rw-r--r--. 1 root root 0 Jul 27 14:29 fb -rw-r--r--. 1 root root 0 Jul 27 14:31 fb.log -rw-r--r--. 1 root root 0 Jul 27 14:31 fB.log -rw-r--r--. 1 root root 0 Jul 27 14:31 fb.txt -rw-r--r--. 1 root root 0 Jul 27 14:31 fB.txt -rw-r--r--. 1 root root 0 Jul 27 14:29 fc -rw-r--r--. 1 root root 0 Jul 27 14:31 fc.log [wxc]匹配列表中的三个字符 touch f2 >> f2
Cp\ cp can be forcibly overridden with the original command
-a reserved permissions
However, when copying root files, permissions are not reserved
Cp-rpv / etc/ / tmp/ backup`date +% F` when bash cannot find the command, check the path, alias, shell type, etc.
System configuration environment variables take effect
Source .bah _ profile
Unalias cancels alias
Safe release of space
> / testdir/f1 Quick clear 0
Df
Mkdir-pv / testdir/ {xrem y / {areco b}}
/ indicates the creation of the same level
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.