1.unzip zip archive
tar -cf new.tar path
tar -xvf file.tar
2.transfer files
scp username@ip:path path
first path 传输文件路径
second path 存储的路径
安装ssh服务器
apt-get install
3. find file content
find -name xx | xargs grep
4.find store
df -m
5 find process
6 create soft link
ln -s
7 File access permissions
chown -R ownername filename
chgrp -R groupname filename
chmod -R 777
Linux 学习
I/O主要操作
不带缓存的I/O
open
write
read
原子操作(atomic operation )
When you append in the file,you need to select the position of the file .switch other process ,the process yet read
the end position of the file,and write in the file, then switch process ,and wirite in the file .
the two seek and wirte do not atomic operation
- File type
- file d directory l link b block
- File attribute(property)
read write execute
owner group other