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 ##ls
ls -a
show with hidden foldersls -t
sort by date modificationls -r
sort in reversels -R
recursivily list directoryls -l
show details of each filetouch
Create a new file or update the timestamps on existing file
file
See file informatin incuding the file type
cat
see whats inside the file
less
see whats inside the file with navigation feature j for up k for down g for top G for bottom and q for quit
ctrl + R
search in command history
!!
run previous command
history
show all commands history
cp
cp -r
copy recursivelycp -i
copy with warning promptsmv
mv -i
move with warning promptsmv -b
make a backup while movingmkdir
mkdir -p dir/mydir
also creates sub directoriesrm -f
force remvoerm -i
remove with warning promptsrm -r
remove recursivelyfind
find PATH -name NAME
search file in specific path with the namefind PATH -type TYPE -name NAME
finds file of specific type with the given name in the given pathwhatis
Learn about a command