ubuntu常用命令汇总
2016-08-15 10:37
232 查看
用apt-get安装,卸载软件
sudo apt-get install sofaware_name sudo apt-get remove software_name
复制文件,文件夹
sudo cp ~/Downloads/doc.txt ~/doc.txt sudo cp -r ~/Downloads/folder_name ~/folder_name
更改文件和文件夹的所有者
sudo chown user_name file_name sudo chown -R user_name folder_name
Show windows loader in grub
# update-grub # vim /boot/grub/grub.conf Change: set default="0" to set default="4"
How to login with other users, i.e., root user.
# vim /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf greeter-show-manual-login=true # reboot Reference: http://jingyan.baidu.com/article/27fa73268144f346f8271f83.html[/code]Workspace Operation
系统设置 --> 外观 --> 行为 --> 开启工作区 Shortcuts: Super + W: Layout all the task windows Super + S: Layout all the workspaces Ctrl + Alt + left/right/up/down: Switch to left/right/up/down workspace Ctrl + Alt + Shift + left....: Move current task to workspace Reference: Other shortcuts http://jingyan.baidu.com/article/fdffd1f83a302af3e98ca132.html[/code]NTFS mount problem
Install ntfs-config Or ntfs* # ntfsfix /dev/sda1ubuntu显示路径过长问题
解决方法: 修改~/.bashrc文件,将 if [ "$color_prompt " = yes ]; then PS1 ='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w \[\033[00m\]\$ ' else PS1 ='${debian_chroot:+($debian_chroot)}\u@\h:\w \$ '
相关文章推荐