欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

ubnutu下看root目录

程序员文章站 2024-01-17 14:43:28
...
Root权限浏览

sudo gedit /usr/share/applications/Nautilus-root.desktop

打开的窗口里复制下面内容

[Desktop Entry]
Name=File Browser (Root)
Comment=Browse the filesystem with the file manager
Exec=gksudo "nautilus --browser %U"
Icon=file-manager
Terminal=false
Type=Application
Categories=Application;System;
保存

解决方法:
执行:sudo apt-get install nautilus-gksu
右键会有open as administrator
-------------------
sudo passwd root
添加root密码
切换root ubuntu下
sudo su
--------------------------------
安装chrome
sudo add-apt-repository ppa:chromium-daily/ppa
sudo apt-get update
sudo apt-get install chromium-browser
------------------------------------------
查看进程
ps -e
杀死进程
kill -9 pid / sudo kill pid
获取pid
pgrep firefox(进程名称)
-------------------------------
服务
添加一个服务
#sudo update-rc.d 服务名 defaults 99
删除一个服务
#sudo update-rc.d 服务名 remove
临时重启一个服务
#/etc/init.d/服务名 restart
临时关闭一个服务
#/etc/init.d/服务名 stop
临时启动一个服务
#/etc/init.d/服务名 start