Skip to content

Instantly share code, notes, and snippets.

@allanj
Created August 15, 2022 02:36
Show Gist options
  • Save allanj/ec54a692c1ef650cc97667b302524d02 to your computer and use it in GitHub Desktop.
Save allanj/ec54a692c1ef650cc97667b302524d02 to your computer and use it in GitHub Desktop.
Useful Command in Linux

Kill process contain certain string

For example, kill command contains python3 -u experiment_main.py

kill $(ps aux | grep '[p]ython3 -u experiment_main.py' | awk '{print $2}')

Hadoop List files by date

hdfs dfs -ls / | sort -k6,7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment