ubuntu16.04(linux)配置、常用快捷键及快捷命令

曝斯坦福校长学术不端
ubuntu16.04(linux)配置、常⽤快捷键及快捷命令ubuntu(linux)终端指令
Linux命令通常由以下三部分组成:
Command [-option] [argument]
cd:change directory(改变⽬录)
cd (空格):cd到主⽬录
cd … :cd到上⼀个⽬录(注意,显⽰错误,这⾥只有两个点)
ls:list(列出当前⽬录)
pwd:print working directory(打印当前⽬录)
mkdir -p:make directory(-p递归创建⽬录)
rmdir:remove empty dir
cp a/b c/d:copy(复制a⽬录下的b,到c⽬录下,改名为d)
mv:move
rm -rf:remove(-rf强制删除所有⽬录)
一战chmod 777:最⼤读写权限
chmod +x:可执⾏权限
fdisk -l:查看硬盘分区
sudo apt-get install:安装命令
sudo apt-get remove 包名:卸载命令
ln -s [源⽂件或⽬录] [⽬标⽂件或⽬录]:(创建软链接,即在⽬标⽬录下创建⼀个链接,链接到原⽂件夹)
sudo apt-get install -f 安装依赖
sudo dpkg -i xxx.deb 安装deb软件包
快捷命令
1、设置终端source ros⼯作空间的快捷命令(在bashrc写⼊):
alias sc="source devel/setup.bash"
2、设置终端配⾊(bashrc写⼊):
if[-n "$force_color_prompt"]; then
if[-x /usr/bin/tput ]&& tput setaf 1>&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429).(Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
络病理论color_prompt=
城市信报
fi
fi
if["$color_prompt"= yes ]; then
# PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
PS1='${debian_chroot:+($debian_chroot)}\w\$ '
else
池州事件
# PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
PS1='${debian_chroot:+($debian_chroot)}\w\$ '
fi
unset color_prompt force_color_prompt
# If this is an xterm set the title to user@host:dir
case"$TERM"in
xterm*|rxvt*)
# PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
PS1="\[\e[32;36m\]\u\[\e[37;33m\]@\h \[\e[36;32m\]\w\[\e[0m\]\\$ "
;;
*)
;;
esac
地球破洞快捷键
1、打开终端:Ctrl+Alt+T
2、打开第⼆个终端:Ctrl+shift+T
3、终端左右分割:ctrl+shift+e(terminator)
4、终端上下分割:ctrl+shift+o(terminator)
5、关闭终端:ctrl+shift+w
配置
卸载
卸载libreoffices:
sudo apt-get remove libreoffice-common
卸载Amazon:
sudo apt-get remove unity-webapps-common
卸载⼀些预装软件:
sudo apt-get remove thunderbird totem rhythmbox empathy brasero simple-scan gnome-mahjongg a
isleriot gnome-mines cheese transmission-common gnome-orca webbrowser-app gnome-sudoku landscape-client-ui-install
sudo apt-get remove onboard deja-dup

本文发布于:2024-09-25 01:16:45,感谢您对本站的认可!

本文链接:https://www.17tex.com/xueshu/257986.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:终端   命令   链接   快捷键
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议