Working with Pathnames

To move easily to directories descended from the home directory, gsh provides the "~" (tilde) character. This character represents the home directory. Therefore, if your home directory was :hard:gno:home:root, you could use the command "cd ~" to move to the home directory (note that "cd" without any arguments also defaults to the home directory). To move to subdirectories of the home directory, you could use the command The tilde character is recognized by gsh before the command is interpreted.

Another special sequence, "..", when used as part of a pathname, will strip the last path between pathname seperators. For example, the pathname "/dev/gno/.." would be expanded to "/dev". The "/gno" portion of the path is stripped as it is before the periods. This provides an excellent way to backup into your directories. "Backing up" is limited by the volume directory of the device being used.

Additionally, the character "." can be used to signify the current directory.