Switch User Command in Linux
Switch user command (su) has the following forms:
su
Switch to , without loading environment variables. If is omitted (only "su"), it equals to "su root";
su -
Switch to , and loading environment variables. "-" is the abbreviation of "-l", which means this is a "login" shell, so all .profile will be sourced (man su for details). If is omitted (only "su -"), it equals to "su - root";
su -c ""
Run command with the identity of another user. It is mostly used in one-off command with root privileges:
su -c "" root
The double quotes around can't be omitted.
Switch User Command in Linux的更多相关文章
- screen command of linux
		
[screen command of linux] 常用键: 补充: Ctrl-a S # split terminal horizon Ctrl-a TAB # switch to ano ...
 - Sending Email from mailx Command in Linux Using Gmail’s SMTP
		
The mailx or mail command in Linux is still providing service for guys like me, especially when we n ...
 - Cisco IOS Basic CLI Configuration : Switch Port Command
		
Cisco IOS Basic CLI Configuration : Switch Port Command 1. Basic Switch>en Switch#conf t Enter c ...
 - Using Android Phone to recover SD card formatted with DD command under linux
		
Using Android Phone to recover SD card formatted with DD command under linux 1. Formatted a sd card ...
 - 下载tree命令的源代码 - The Tree Command for Linux Homepage
		
The Tree Command for Linux Homepage http://mama.indstate.edu/users/ice/tree/ [root@test ~]# ll -as m ...
 - Changing the Color of Linux ls Command 改变Linux的ls命令显示的颜色
		
Linux command ls basically use the file /etc/DIR_COLORS or /etc/DIR_COLORS.xterm to define the color ...
 - The dd command of linux
		
The dd command stands for "data duplicator" and used for copying and converting data. It i ...
 - logrotate command in Linux
		
背景 在生产过程中,由于磁盘空间.保留周期等因素,会对系统.应用等日志提出要求,要求系统日志定期进行轮转.压缩和删除,从而减少开销,而系统自带的logrotate 则是一个简单又实用的小工具,下面着 ...
 - To Use FTP Command in Linux
		
Yesterday I was asked to upload a file in Linux to the corresponding server. I said "oops" ...
 
随机推荐
- Java数据库开发(三)之——补充
			
一.SQL注入与防范 使用PreparedStatement替代Statement对象,它提供了参数化SQL的方式 二.事务 定义 事务是并发控制的基本单位,满足ACID特征 原子性:atomicit ...
 - Linux之 du的用法
			
du 显示目录和文件的大小,常用命令为 du -sh * du -sm * | sort -n //统计当前目录大小 并按大小 排序 du 无参数 显示当前路径下的目录大小和子目录大小 -b/-k/- ...
 - python之学生信息管理系统
			
1 #!usr/bin/python 2 #encoding=utf-8 3 4 #1. 打印学生管理系统界面 5 def printStd(): 6 print ("*"*50) ...
 - U149791 正多边形变换
			
原博客网页--洛谷博客 题目地址 如果您对群论有所了解,那么本题就是对二面体群 \(D_{2n}\) 的简单实现,您可以直接跳到代码部分.下面的解题思路只是对二面体群 \(D_{2n}\) 的构造思路 ...
 - yum的卸载和安装
			
安装精髓:报错就查,少包就按. 一.如果yum没有注册则需要卸载再安装第三方yum 1.卸载redhat的默认安装yum包 [root@dsl ~]#rpm –qa | grep yum [root@ ...
 - python 读写sql2008 类
			
import pymssql class MSSQL: def __init__(self,host,user,pwd,db): self.host = host self.user = user s ...
 - Java基础00-方法10
			
1. 方法概述 1.1 什么是方法 将好几串代码组成一个整体,这个整体就是方法. 2. 方法的定义和调用 2.1 方法定义 2.2 方法的调用 方法名()就可以调用方法 代码示例:必须在main方法中 ...
 - 简单梳理 ES6 函数
			
箭头函数 箭头函数提供了一种更加简洁的函数书写方式.基本语法是 参数 => 函数体 基本用法: var f = v => v; //等价于 var f = function(a){ ret ...
 - js表单插件
			
参考:https://www.html5tricks.com/category/jquery-plugin/jquery-form
 - mybatis-3-核心配置文件
			
全局配置文件:mybatis-config.xml 1.引入外部配置文件(properties) date.properties外部配置文件 driver = com.mysql.cj.jdbc.Dr ...