Linux Learning
Catagory: shell
Popular Linux OS
- Debian -> Ubuntu -> Linux MINT
- RedHat -> Fedora -> (opensuse)
- Arch -> (Manjero)
Shell Command notes
##pwd
Print current directory
##cd
.->..-> go back--> go previous~-> home ##lsls -ashow with hidden foldersls -tsort by date modificationls -rsort in reversels -Rrecursivily list directoryls -lshow details of each filetouchCreate a new file or update the timestamps on existing file
fileSee file informatin incuding the file type
catsee whats inside the file
lesssee whats inside the file with navigation feature j for up k for down g for top G for bottom and q for quit
ctrl + Rsearch in command history
!!run previous command
historyshow all commands history
cpcp -rcopy recursivelycp -icopy with warning promptsmvmv -imove with warning promptsmv -bmake a backup while movingmkdirmkdir -p dir/mydiralso creates sub directoriesrm -fforce remvoerm -iremove with warning promptsrm -rremove recursivelyfindfind PATH -name NAMEsearch file in specific path with the namefind PATH -type TYPE -name NAMEfinds file of specific type with the given name in the given pathwhatisLearn about a command