Compare commits
2 Commits
a9c637bf9a
...
5a74d0822a
Author | SHA1 | Date | |
---|---|---|---|
|
5a74d0822a | ||
|
6e5bac6707 |
@ -35,6 +35,7 @@ function config_update {
|
|||||||
|
|
||||||
# Editor
|
# Editor
|
||||||
alias c='codium'
|
alias c='codium'
|
||||||
|
alias e='micro'
|
||||||
|
|
||||||
# Find
|
# Find
|
||||||
alias find='find . -name'
|
alias find='find . -name'
|
||||||
|
18
navi/misc.cheat
Normal file
18
navi/misc.cheat
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
% misc
|
||||||
|
|
||||||
|
# Show users service
|
||||||
|
cat /etc/passwd |awk -F: '{ print $1}'
|
||||||
|
|
||||||
|
# Change user password
|
||||||
|
sudo passwd <user>
|
||||||
|
|
||||||
|
# Create user with home
|
||||||
|
sudo useradd -m <username>
|
||||||
|
|
||||||
|
# Create user without home
|
||||||
|
sudo useradd <username>
|
||||||
|
|
||||||
|
# Delete an user
|
||||||
|
sudo deluser <user>
|
||||||
|
|
||||||
|
$ user: cat /etc/passwd |awk -F: '{ print $1}'
|
Loading…
x
Reference in New Issue
Block a user