ubuntu使用问题

来源:互联网 发布:mac 打开硬盘隐藏文件 编辑:程序博客网 时间:2024/05/20 21:19

1、系统服务

       sudo apt-get sysv-rc-conf


2、卸载VMWARE

      sudo vmware-installer --uninstall-component=vmware-workstation


3、单用户模式读写文件

      mount -n -o remount /


4、内核头文件

      apt-get install linux-headers-`uname -r`


5、环境变量

      用户环境变量

            ~/.profile、~/.bash_profile 或者 ~./bash_login 、  ~/.bashrc

     系统环境变量

            /etc/environment、/etc/profile、/etc/bash.bashrc、            (/etc/profile和 /etc/bash.bashrc在Ubuntu 10.0版本中不推荐使用。)

           如想将一个路径加入到$PATH中,可以像下面这样做(修改/etc/profile):

            $ sudo nano /etc/profile   在里面加入:    export PATH="$PATH:/my_new_path"
            $source /etc/profile   [需要注意的是,最好不要把当前路径”./”放到PATH里,这样可能会受到意想不到的攻击]