LWM-Linux/06 - Linux File Operations/Directories and Links.md

28 lines
1.7 KiB
Markdown
Raw Normal View History

## Certainly! Let's explore directories and symbolic links in **Linux Mint**:
1. **Directories (Folders)**:
- Directories are like containers that organize files. They hold files and other directories.
- When you navigate through your file system, you're moving between directories.
- Common terminal commands related to directories:
- `ls`: Lists files and directories in the current working directory³.
- `cd`: Changes the current directory (e.g., `cd Documents`).
2. **Symbolic Links (Symlinks)**:
- Symlinks are advanced shortcuts.
- A symlink points to another file or directory, even though it appears as if it's the actual file.
- To create a symlink using the `ln` command:
```
ln -s /path/to/original /path/to/link
```
- For example, creating a symlink from your Downloads folder to your Desktop:
```
ln -s /home/username/Downloads /home/username/Desktop
```
Remember, directories organize files, and symlinks provide flexible references to other locations! Feel free to explore further or ask more questions. 😊🚀
Source: Conversation with Copilot, 7/12/2024
- [(1) The beginners guide to using terminal on Linux Mint - FOSS Linux.](https://www.fosslinux.com/103546/the-beginners-guide-to-using-terminal-on-linux-mint.htm.)
- [(2) How to Create and Use Symbolic Links (aka Symlinks) on Linux.](https://www.howtogeek.com/287014/how-to-create-and-use-symbolic-links-aka-symlinks-on-linux/.)
- [(3) Open a terminal window and change to the directory where you.](https://forums.linuxmint.com/viewtopic.php?t=97386.)
- [(4) How to Find Files and Directories in Linux Mint 20 LinuxWays.](https://linuxways.net/mint/how-to-find-files-and-directories-in-linux-mint-20/.)