ubuntu 快捷键

打开终端:alt+F2 ,  Terminal.  (Ctrl+Alt+T)

虚拟机全屏显示:ctrl+alt+enter


安装时,出现404错误

执行sudo apt-get update更新一样都解决

sudo apt-get

换到root

sudo -i,

设置密码 sudo passwd root

去掉密码 sudo passwd -dl root

  • sudo passwd root. This will create a password for your root account, essentially "enabling" it. Make sure you don't forget this password.
  • Enter the command sudo -i. You will be asked for your root password.
  • Your prompt will change from $ to #, indicating you have root access.
  • To disable root access, enter the command sudo passwd -dl root

xdg-open filename

vi(M)
open:vi file anme
delete: dd(n) 删除行
删除字符:x
Esc: 回到命令模式。
i:进入输入模式。
保存:w, 
保存退出:qw
强行退出:q!

mkdir 目录名         => 创建一个目录
rmdir 空目录名      => 删除一个空目录
rm 文件名 文件名   => 删除一个文件或多个文件
touch 文件名        => 创建一个空文件

重启一些服务

网络:

/etc/init.d/networking restart
重启tomcat:

/etc/init.d/tomcat6 restart

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值