码迷,mamicode.com
首页 > 系统相关 > 详细

Linux常用命令

时间:2015-02-25 18:17:38      阅读:153      评论:0      收藏:0      [点我收藏+]

标签:

解压缩*.tar.gz

tar -zxvf zippedfilename.tart.gz

切换到root用户(-表示同root登录,带有root的环境变量)

su -

切换回其他用户(username为要切换到的用户名)

su - username

 

常见问题及解决方法

问题:xxxx is not in the sudoers file. This incident will be reported.

解决方法:切换到root用户,运行visudo命令,在打开的配置文件中,找到root ALL=(ALL) ALL,在下面添加一行
xxx ALL=(ALL) ALL
其中xxx是你要加入的用户名称(注:书写形式可能略有不同,用xxx代替root,其他照着写就可以了)

Linux常用命令

标签:

原文地址:http://www.cnblogs.com/urwlcm/p/4299814.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!