Skip to content

hckweb/Linux-Cheatsheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Linux-Cheatsheet

Run a command as an another user

Bash

sudo runuser pi -c 'cd /home/pi/repo; git pull'

C

#include <stdio.h>

system("sudo runuser pi -c 'cd /home/pi/repo; git pull'");

About

Linux Cheatsheet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors