如何使用tar对整个文件夹打包?

如何使用tar对整个文件夹打包? tar cvzf xxx.tar.gz xxx/

wc命令

wc命令用来打印文件的文本行数、单词数、字节数等(print the number of newlines, words, and bytes in files) 格式:wc -l 打印指定文件的文本行数。(l=小写L) 参数:-c, –bytes 打印字节数(print the byte counts) 参数:-m, –chars 打印字符数(print the character counts) 参数:-l, –lines 打印行数(print the newline counts) 参数:-w, –words 打印单词数(print the word counts)

ubuntu 映射远程目录

sshfs 用户名@远程服务器名:远程目录 映射至本地的目录

ubuntu 查看用户所在组

id yourname

ubuntu 添加用户到指定组

sudo gpasswd -a <账号> <组名>

安装OpenSSH

安装OpenSSH Ubuntu缺省没有安装SSH Server,使用以下命令安装: sudo apt-get install openssh-server openssh-client

fedora ubuntu 建立多重启动菜单

实践环境:ubuntu 10.10 和 fedora 14 这里涉及到一个安装先后的问题。 情况一、先安装fedora,后安装ubuntu 如果不出意外的话,ubuntu会自动搜索你硬盘上的所有操作系统,并生成所有操作系统的对应菜单。 如果运气不好,没有生成fedora的启动菜单项,我们可以手工生成。

How to get Ubuntu 11.04

Upgrade from Ubuntu 10.10

nginx编译选项

./configure –prefix=/opt/nginx \ –conf-path=/etc/nginx/nginx.conf \ –error-log-path=/var/log/nginx/error.log \ –pid-path=/var/tmp/nginx/nginx.pid \ –lock-path=/var/lock/nginx.lock \ –user=nginx \ –group=nginx \ –with-http_flv_module \ –with-http_ssl_module \ –add-module=’/opt/passenger/ext/nginx’ \ –with-http_gzip_static_module \ –http-log-path=/var/log/nginx/access.log \ –http-client-body-temp-path=/var/tmp/nginx/client/ \ –http-proxy-temp-path=/var/tmp/nginx/proxy/ \ –http-fastcgi-temp-path=/var/tmp/nginx/fastcgi/ \ –http-scgi-temp-path=/var/tmp/nginx/scgi/ \ –http-uwsgi-temp-path=/var/tmp/nginx/uwsgi/

rewrite module requires the PCRE library

在编译nginx时遇到rewrite module requires the PCRE library错误,提示需要PCRE库,解决方法: ubuntu下执行 apt-get install libpcre3-dev RHEL下执行 yum -y install pcre-devel

Powered by WordPress | Find Wireless Deals at BestInCellPhones.com. | Thanks to iCellPhoneDeals.com Free Cell Phones, Find Highest CD Rates and Incinerador De Grasa Revisión