Linux常用命令,linux命令


解压缩*.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,其他照着写就可以了)

相关内容