This is the pdf that you will ever need to master Linux.
Linux basic commands: du -sh * | sort -h -r | head -n 40 : list out first 40 files in the directory that are taking more space in the directory. cd : change directory Is-l listing the items in long listing format pwd : print working directory Is-I format: type :no of links:owner : group:size :month :day :time :name cd/: go to/directory whoami: tells us by which username we are logged in. touch jerry: creates the file named jerry in present working directory. cp jerry lex: copy the content of jerry file and paste it to lex file. vi text1: creates the file text1 and open it in vi editor mkdir superman: creates the directory called superman mkdir abc def : creates 2 folder in one command. touch filename wont work in /etc/ folder if logged in by normal account. man cp: shows manual for cp command. echo "india is my country"> file1 puts the text in file1. rm filename: remove the filename mv lex luther renames the file from lex to luther mv luther /h
Comments
Post a Comment