ubuntu常用命令汇总

来源:互联网 发布:手机阿里云下载 编辑:程序博客网 时间:2024/05/19 02:30

用apt-get安装,卸载软件

sudo apt-get install sofaware_namesudo apt-get remove software_name

复制文件,文件夹

sudo cp ~/Downloads/doc.txt ~/doc.txtsudo cp -r ~/Downloads/folder_name ~/folder_name

更改文件和文件夹的所有者

sudo chown user_name file_namesudo chown -R user_name folder_name

Show windows loader in grub

# update-grub# vim /boot/grub/grub.confChange:set default="0"toset default="4"

How to login with other users, i.e., root user.

# vim /usr/share/lightdm/lightdm.conf.d/50-ubuntu.confgreeter-show-manual-login=true# rebootReference:http://jingyan.baidu.com/article/27fa73268144f346f8271f83.html

Workspace Operation

系统设置 --> 外观 --> 行为 --> 开启工作区Shortcuts:Super + W: Layout all the task windowsSuper + S: Layout all the workspacesCtrl + Alt + left/right/up/down: Switch to left/right/up/down workspaceCtrl + Alt + Shift + left....: Move current task to workspaceReference:Other shortcutshttp://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 0
原创粉丝点击