Thursday, 30 July 2020

Unix/Linux Important Commands

Main Linux commands



ls -lrt == list of files order by date ascendingls -lrt | tail - 10  == list of files order by date ascending Top 10wc -l == line count in filegrep -i === Match pattern ignoring casegrep -i Test00 == Find word Test00 ignoring case and give the list of words containing Test00grep -i Test00 | wc -l === Gives count of number of wordswc -l Test.txt == this will give line count in text.txtgrep -i "Maximo" | wc -l = Give the count of lines which contains word Maximo

pwd === Print working directory.

cd == to go into directory

cd .. == to go out of directory

df -H == This is used to check disk file system space available and used.

rm file.txt == to remove file

ls heap* == to list all files with heap* name..

TOP == see all process

kill -9 IDOFPROCESSTOKILL

No comments:

Post a Comment