Linux: Delete File/Dir

By Xah Lee. Date: .

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

Linux Shell Basics

Directory and Files

Compress, Archive, Download

Text Processing

User, Group, File Perm


Process, Job Control


Linux Desktop