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