Linux Files Directories — Free Linux Tutorial
Learn Linux Files Directories in Linux with a free, beginner-friendly tutorial, examples and practice for Indian students on Syllab.in.
TL;DR: Learn Linux Files Directories in Linux with a free, beginner-friendly tutorial, examples and practice for Indian students on Syllab.in.
Written & reviewed by the Syllab.in Academic Team (CBSE/NCERT subject experts) · Updated
Linux Files Directories in Linux
Creating and managing files/folders is fundamental. mkdir creates directories, touch creates empty files (or updates timestamps), cp copies files/folders, mv moves/renames them, and rm deletes them. The -r flag (recursive) is needed when operating on directories. Be careful with rm—it does not use a trash bin; deleted files are gone permanently.
Efficient file organization saves time. Create project directories with mkdir -p path/to/nested/folder to create all parent directories. Use mv to rename: mv oldname.txt newname.txt. Copy with cp source dest. To remove a directory and all contents, use rm -rf (use carefully!). Always double-check rm commands before pressing Enter.
Learn Linux Files Directories step by step with Syllab's free interactive Linux tutorial — runnable code examples, practice exercises and instant AI feedback, all free with no signup. Explore the full Linux course →