SHELL相关

打包:C:/Program Files/WinRAR/Rar.exe a C:/xxx/xxx.rar D:/dir

查看系统信息:reg QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion" | findstr "BuildLab"


打包:

[root@linux ~]# tar -cvf /tmp/etc.tar /etc <==仅打包,不压缩!

[root@linux ~]# tar -zcvf /tmp/etc.tar.gz /etc <==打包后,以 gzip 压缩

[root@linux ~]# tar -jcvf /tmp/etc.tar.bz2 /etc <==打包后,以 bzip2 压缩

你可能感兴趣的:(SHELL相关)