Tag Info

New answers tagged


Here is the solution: go into the directory and type ls -a you will find .xyz (dot file) file vi .xyz and look into what is the content of the file ps -ef |grep username you will see the .xyz content in the 8th column (last row) kill -9 <job ids> here <job ids> means 2nd column of corresponding error caused content in the 8th column now try ...


This command works regardless of the directories' names. To remove the third oldest directory: ls --sort t -l | grep -v total | awk '{print $9}' | head -n -2 | tail -1 | xargs rm -rf


Try this: ls -1tr | grep 2014\- | head -1 | xargs rm -rf

Top 50 recent answers are included