Linux命令
chown root pwd
chgrp root pwd
chmod u+s pwd
mv a b
cp a.c b.c
netstat -auptn|grep ssh
ldd +程序名字
Touch 文件名
rm - r
mail
echo "hello 这是晚上?" |mail -s "有空吗" yhx
stat lstat查看文件大小
md5sum 文件名 (如果文件内容相同,md5值相同)
awk的使用
awk -F. '{print $1}' file > newfile
awk -F : '{print $1"\t"$3}' a
awk -F : '{print $1,$3}' a
awk -F : '{if($3>=500)print $1"\t"$3}' a
Sed ‘’输入文件输出文件
sed '2i\hello' file >newfile
sed '2a\hello' file >newfile
sed -n '2,3p' file >newfile
sed '2,3p' file >newfile
sed '3d' file >newfile
xshell连接过程
1.查看ipcofig /all (windows 下面查看)
2.修改虚拟机的IP地址使其与Windows在同一网段