Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

execute as another user linux

runuser -l <USER> -c <CMD>
Comment

linux execute as user

sudo -H -u otheruser bash -c 'echo "I am $USER, with uid $UID"' 
Comment

PREVIOUS NEXT
Code Example
Shell :: check internet speed on mac terminal 
Shell :: install pyenv 
Shell :: pinterest clone github 
Shell :: how to install node js in ubuntu 
Shell :: ubuntu open file from terminal 
Shell :: where is global config file for git 
Shell :: bash print specific range of rows from a file 
Shell :: bash see active ports 
Shell :: git pull upstream 
Shell :: run google chrome from terminal 
Shell :: ubuntu check ssh 
Shell :: iwconfig command not found 
Shell :: matlab on ubuntu 
Shell :: gitignore ignore everything except 
Shell :: remove git proxy local 
Shell :: move running terminal process to background linux 
Shell :: git delete all merged branches 
Shell :: react material-ui install error on react 18 
Shell :: sh declare variable 
Shell :: install deb linux ubuntu uninstall 
Shell :: ffmpeg from frames to video 
Shell :: git revert last commit keep changes 
Shell :: how to install hashcat 
Shell :: kill port 
Shell :: node latest version ubuntu 
Shell :: create csr ubuntu 
Shell :: exit vim 
Shell :: dpkg: error processing archive /var/cache/apt/archives/atftpd_0.7.git20210915- 
Shell :: get total file size linux 
Shell :: bash hide file 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =