Re: note about beginners guide

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



> I corrected my mail, with a second mail. For a beginner it's easier to
> follow the structure if the user several times changes the dir and list
> several times the contents.

Changing directory with 'cd' makes sense only when we have to do some
(several) operations with files in this directory.

For example...
cd <path>
cp <file> <file>.backup
nano <file>

...in order not to write prefix (path) all the time before filenames in
operations.

But when all we want to do is to list the directory contents or anything
else that can be written in one simple operation, changing working
directory is useless.

Useless example (following the structure... just like you said):

cd /
cd usr
cd share
cd zoneinfo
cd Europe
ls

The same is made by 'ls /usr/share/zoneinfo/Europe'

Peace :-)




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux