Skip to content
cheatsheet
home
/
cv
/
weblog
/
cheatsheet
/
proxy
/
vpn
/
status
/
links
EN
RU
☾
New version available
reload
×
cheatsheet
/
linux
/
List open files by process
List open files by process
linux
Show all files, sockets, and connections opened by a process
lsof -p <pid>
⎘ copy
#linux
#debug
more linux
all 133 commands →
Watch command output
watch -n 2 'kubectl get pods -n <ns>'
Run command in background
nohup ./script.sh > /tmp/out.log 2>&1 &
Create SSH tunnel
ssh -L 8080:internal-service:80 user@bastion -N -f
Extract tar.gz
tar -xzf archive.tar.gz -C /target/dir/
Generate random password
openssl rand -base64 32