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|Overwriteexercise.txtwith"This will overwrite",ormakeexercise.txtfileifitisnotexistsecho"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}'