Catatan ini ditujukan untuk mempermudah pencarian perintah-perintah dasar Linux untuk keperluan Pentesting/VA.Cheatsheet ini disadur dari akun Github rekan saya Satrya Mahardhika.
Redirection is change the output of command to a files
catexercise.txt|grepadmin>admin_exercise.txtecho "This will overwrite" > admin_exercise.txt | Overwrite exercise.txt with "This will overwrite", or make exercise.txt file if it is not exists
echo"This will not overwrite">>admin_exercise.txt|write"This will not overwrite"tothelastlineofexercise.txt
cut
Cutting out some section of a file
catuser.txt|cut-d":"-f1//Menampilkanhanyacolomn1
awk
More powerful than Cut
catuser.txt|awk-F":"'{print $1 $2}'cutuser.txt|awk-F":"'{print "Terdapat user bernama " $1}'