3.6. Filesystem navigation

ABLE has the ability to fully navigate detected filesystems. The File Navigation commands may be used to move around and list the entries within any filesystem which supports directory enumeration (currently only the tftpboot pseudo filesystem does not). It should be noted that only devices with a valid filesystem recognised and supported by ABLE can be navigated in this way.

ABLE presents all available filesystems and devices in a hierarchical structure. The root of this filesystem is a virtual representation of all the available devices. The devices are either direct representations of devices or aliases which show the detected filesystems on devices.

At initial boot time the Present Working Directory (PWD) is set to / which represents the root of the filesystems. The PWD is changed with the cd command and displayed with the pwd command. The ls command without any parameters lists the PWD. With a parameter it lists the specified directory. The lsfs command is exactly the same as using ls /.

Example 3.4. Navigating a filesystem

>pwd
/
>ls
(hd1) (aliases to hdc2)
(hd0) (aliases to (hdc1):ext2)
(nvram0) (aliases to 24cxx)
(flash1) (aliases to (nand0p2):jffs2)
(flash0) (aliases to nand0p1)
>cd (hd0)
>ls
lost+found
var
etc
usr
bin
boot
dev
home
lib
mnt
proc
root
sbin
tmp
sys
srv
opt
floppy
cdrom
media
initrd
vmlinuz
>cd boot
>ls -l
-rw-r--r--    1 0 0   376034 System.map-2.4.25-bast
-rw-r--r--    1 0 0    28687 config-2.4.25-bast
-rw-r--r--    1 0 0  1016944 vmlinuz-2.4.25-bast
-rw-r--r--    1 0 0       45 patches-2.4.25-bast
-rwxr-xr-x    1 0 0  1484512 vmlinuz-2.6.11-bast
-rw-r--r--    1 0 0   533056 System.map-2.6.11-bast
>