ubuntu常用命令汇总

用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
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
NTFS mount problem
Install ntfs-config Or ntfs*
# ntfsfix /dev/sda1
ubuntu显示路径过长问题
解决方法:
修改~/.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 \$ '
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值