Linux Tutorial
Linux: Delete File/Dir
By Xah Lee. Date:
2023-02-18
.
Delete File/Dir
rm
fileName
Delete a file
rm -r
dirName
Delete a directory. (BE CAREFUL)
rmdir
dirName
Delete a dir only if it is empty
Directory and Files
Navigate Directory
List Files
Traverse Directory: find, xargs
View Directory as Tree
Copy/Rename File
Create New File/Dir
Linux: Delete File/Dir
Show Directory Size: du
rsync Tutorial
Linux Shell Basics
Shell Basics
Get System Info
Disk Size, Free Space
Help, Manual
Search/Find Command
Directory and Files
Navigate Directory
List Files
find, xargs
show dir as tree
Copy/Rename File
Create New File/Dir
Delete File/Dir
dir size: du
sync files
Compress, Archive, Download
untar unzip etc
Create tar zip etc
get webpage, curl
Text Processing
Show File Content
grep, cat, awk, uniq
sort
diff Files/Dir
Convert File Encoding
User, Group, File Perm
File Permission
Users and Groups
misc
Install Packages
Process, Job Control
ps, kill
top
htop
Job Control
Opened Files: lsof
RAM stat
shutdown, sleep
Bash/Terminal
Bash/Terminal Keys
Man Page Keys
Bash Prompt Setup
Bash Color Prompt
bash init/profile
zsh Prompt Setup
Virtual Terminal
Terminal Control Sequence Keys
Ctrl+s Freeze vim
Reset Terminal
tmux
Bash Manual in Chapters
Bash Misc Tips
Log Terminal Session
xterm Copy Paste, Font Size
Linux Desktop
Useful GUI App Names
Set Default App
Commands for GUI Apps
Image Viewers
Music Players
Move to Trash Command
X11 Selection and Clipboard
Switch to LXDE/Xfce
Restart X11
Why Tiling Window Manager Sucks
Standard Fonts
Install Font