[CentOS] linux rescue - complete list of utilities and commands?

Wed Nov 12 15:43:18 UTC 2008
Phil Schaffner <Philip.R.Schaffner at NASA.gov>

Lanny Marcus wrote:
> On this URL:
> http://www.centos.org/docs/5/html/Installation_Guide-en-US/s1-rescuemode-boot.html
> there is a description of "linux rescue" which includes the following:
> 
>  From the prompt, you can run many useful commands, such as:
> 
>        ssh, scp, and ping if the network is started
> 
>        dump and restore for users with tape drives
> 
>        parted and fdisk for managing partitions
> 
>        rpm for installing or upgrading software
> 
>        joe for editing configuration files
> 
> Question: Is there a complete list somewhere, of which System
> Utilities and Commands are available, if one boots into "linux
> rescue"?

If rescue mode manages to mount your installed system on /mnt/sysimage 
it automatically adds elements to the path including 
/mnt/sysimage/bin:/mnt/sysimage/usr/bin:/mnt/sysimage/usr/sbin:/mnt/sysimage/sbin:/mnt/sysimage/usr/X11R6/bin, 
so it depends on what you have installed.

Typing <Tab><Tab> at the command prompt after skipping the mounting or 
removing the /mnt/sysimage elements of the PATH variable (e.g. 
PATH=/bin:/usr/bin:/sbin:/usr/sbin) shows 438 available commands for the 
5.2 DVD booted in rescue mode.  Won't try to include them all here.

Phil