1. cp: omitting directory 方法:
cp -r src_dir des_dir
2. 修改hostname:
/etc/hostname
3. ftp 中文显示乱码:
/etc/lftp.conf
set ftp:charset GBK
set file:charset UTF-8
4. 工具栏置顶:
alt + 拖拉
5. 使用户具有sudo功能
sudo usermod -G admin username
6. 解压 rar 包
sudo apt-get install unrar
unrar e filename
7. 删除该目录下的搜有同名文件
find . -name CVS | xargs rm -rf
cp -r src_dir des_dir
2. 修改hostname:
/etc/hostname
3. ftp 中文显示乱码:
/etc/lftp.conf
set ftp:charset GBK
set file:charset UTF-8
4. 工具栏置顶:
alt + 拖拉
5. 使用户具有sudo功能
sudo usermod -G admin username
6. 解压 rar 包
sudo apt-get install unrar
unrar e filename
7. 删除该目录下的搜有同名文件
find . -name CVS | xargs rm -rf
8. 登录时自动执行:.profile
if [ -f ~/.git-completion.bash ]; then
source ~/.git-completion.bash
fi
9. 挂载远程samba 目录
$ sudo apt-get install smbfs
$ sudo smbmount //192.168.0.1/minh /mnt/smb -o user=minh,pass=123456,iocharset=utf8