Command-Line Renaming Directories
Most Linux distributions now come with a GUI and a graphic file management system. On GNOME-based distributions this will usually be Nautilus, and on KDE systems, Konqueror. Both work in a similar way to the Windows File Manager, in that directories can be renamed by clicking on them and selecting ‘Rename’ from the local menu.
The command-line Terminal Window can also be used to rename directories, but users will need to know about the Linux file structure. The Linux file system stems from a single root directory represented by a slash character (Windows uses a backslash). Immediately under this there are usually between fifteen and twenty system directories with names like bin, dev and etc. We are concerned with the directory called home, which contains the individual user folders. If Tom, Sue and I all have accounts on the same PC, there will be folders under the home folder called ‘tom’, ‘sue’ and ‘jon’.
A command-line Terminal window will be accessible from one of the menus; in Ubuntu Linux it is found by default under Applications / Accessories. This will open up a text entry window with a prompt and a flashing cursor. The prompt includes a path string that tells the user whereabouts on the system they are: for instance:
root@jon-ubuntu-laptop:/# – I am located in the root directory
root@jon-ubuntu-laptop:/home# – I am located in the home directory
A tilde character is used to indicate the user’s own subdirectory: e.g.
root@jon-ubuntu-laptop:~# – I am located in my subdirectory under /home i.e. /home/jon