- Checking the process running on a port
- lsof -i :<port_number>
- sudo netstat -peanut | grep <port_number>
- Checking processes
- ps aux | grep <process_name>
- Checking logs of various processes
- tail -f /var/log/<>.log
rsync -azPh --dry-run -e "ssh -i key.pem" [email protected]:/home/ubuntu/datasets/lidar/SCANS/ ./
rsync -azPh -e "ssh -i key.pem" [email protected]:/home/ubuntu/datasets/lidar/SCANS/ ./
rsync -v --stats --progress -azh -e "ssh -i key.pem" [email protected]:/home/ubuntu/datasets/lidar/SCANS/ ./
- a : archive / recursive
- z : compress
- h : human readable
- P : progress
n=0; while [[ $n -lt 10 ]]; do rsync -rvzhu -e ssh playment-gpu:/home/play/data/pspnet/processed/driveai/*_overlay.jpeg ./; sleep 5; n=$((n+1)); done
ps ax | grep 'ipykernel' | awk -F ' ' '{print $1}' | xargs sudo kill -9
ll | wc -l
find ./ -iname '*data*'
find /usr -iname '*opencv*'
find ./ -iname '*cuda*'
sudo apt install htop
htop
htop -p <pid>
htop --pid=<pid1>,<pid2>
ps aux | grep jupyter/kernel
ps aux | grep jupyter/kernel | awk -F ' ' '{print $2}'
ps aux | grep jupyter/kernel | awk -F ' ' '{print $2}' | head -n 1
pid_jupyterkernel=$(ps aux | grep jupyter/kernel | awk -F ' ' '{print $2}' | head -n 1)
echo $pid_jupyterkernel
pid_jupyterkernel=$(ps aux | grep jupyter/kernel | awk -F ' ' '{print $2}' | head -n 1) && htop -p $pid_jupyterkernel
~/.basrhc
alias jupyter_htop="pid_jupyterkernel=$(ps aux | grep jupyter/kernel | awk -F ' ' '{print $2}' | head -n 1) && htop -p $pid_jupyterkernel"
pid_jupyterkernel=$(ps aux | grep jupyter/kernel | awk -F ' ' '{print $2}' | tr '\n' ',') && htop --pid=$pid_jupyterkernel
~/.basrhc
alias jupyter_htop="pid_jupyterkernel=$(ps aux | grep jupyter/kernel | awk -F ' ' '{print $2}' | tr '\n' ',') && htop --pid=$pid_jupyterkernel"
alias jupyter_htop="pid_jupyterkernel=$(ps aux | grep jupyter/kernel | awk -F ' ' '{print $2}' | tr '\n' ',') && echo $pid_jupyterkernel && sleep 3 && htop --pid=$pid_jupyterkernel"