List some useful Linux commands here.
Last active
September 5, 2023 03:52
-
-
Save Hansimov/cab44ae4bc3a6d3c9b5447d258fbbd07 to your computer and use it in GitHub Desktop.
Collection of useful Linux commands in daily work
nvidia-smi -q -x | grep pid | sed -e 's/<pid>//g' -e 's/<\/pid>//g' -e 's/^[[:space:]]*//'`
References:
- cuda - How do I customize nvidia-smi 's output to show PID username? - Stack Overflow
List process run on port 28888
:
lsof -i:28888
Kill a process run on port 28888
:
kill $(lsof -i:28888 | awk 'NR>1 {print $2}')
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
List file structure by tree:
also contain files:
Add alias to
~./.bashrc
:References: