@@ -65,7 +65,7 @@ agfs-shell is a lightweight, educational shell that demonstrates Unix pipeline c
6565- ** Comments** : ` # ` and ` // ` style comments
6666
6767### Built-in Commands (42+)
68- - ** File Operations** : cd, pwd, ls, tree, cat, mkdir, touch, rm, mv, stat, cp, upload, download
68+ - ** File Operations** : cd, pwd, ls, tree, cat, mkdir, touch, rm, mv, stat, cp, ln, upload, download
6969- ** Text Processing** : echo, grep, jq, wc, head, tail, tee, sort, uniq, tr, rev, cut
7070- ** Path Utilities** : basename, dirname
7171- ** Variables** : export, env, unset, local
@@ -592,13 +592,16 @@ pwd # /local/mydir
592592```
593593
594594#### ls [ -l] [ path]
595- List directory contents.
595+ List directory contents. Symlinks are displayed in cyan color with arrow notation.
596596
597597``` bash
598598ls # List current directory
599599ls /local # List specific directory
600600ls -l # Long format with details
601601ls -l /local/* .txt # List with glob pattern
602+
603+ # Symlink display example:
604+ # aws2 -> /s3fs/aws # Symlinks shown with arrow and target
602605```
603606
604607#### tree [ OPTIONS] [ path]
@@ -694,6 +697,35 @@ download /local/tmp/data.json ~/Downloads/
694697download -r /local/tmp/logs ~ /backup/logs/
695698```
696699
700+ #### ln [ -s] target link_path
701+ Create symbolic links. The ` -s ` flag is required (hard links are not supported).
702+
703+ ``` bash
704+ # Create a symbolic link
705+ ln -s /s3fs/aws /s3fs/backup
706+
707+ # Create a symlink to a directory
708+ ln -s /local/data /shortcuts/mydata
709+
710+ # Relative path symlinks
711+ cd /local/tmp
712+ ln -s ../config/app.conf local_config
713+
714+ # Cross-mount symlinks work
715+ ln -s /memfs/cache /local/shortcuts/cache
716+
717+ # Symlinks appear in ls with cyan color and arrow notation
718+ ls -l /shortcuts
719+ # mydata -> /local/data
720+ ```
721+
722+ ** Features:**
723+ - Virtual symlinks at the AGFS layer (no backend support required)
724+ - Support for relative and absolute paths
725+ - Cross-mount symlinks (link across different filesystems)
726+ - Symlink chain resolution with cycle detection
727+ - Symlinks work with ` cd ` , ` ls ` , ` cat ` , and other file operations
728+
697729### Text Processing
698730
699731#### echo [ args...]
0 commit comments