On Tue, Oct 4, 2011 at 4:48 PM, Ralf Mardorf <[email protected]> wrote:
> Beside the space issue, you also might take care about globbing.
> If you e.g. "cp *" you won't copy hidden files of the directory, but all
> inside folders of the directory. If you e.g. "rm *", you'll delete all
> files, including hidden files.
The command "cp *" will not recurse into directories without -r or -a
to enable recursion. The "*" is expanded by the shell and is passed as
arguments to the command. This means that "*" will expand to the same
set of files and directories, regardless of the command in front of
it. In bash, you can enable globbing of hidden files with "shopt -s
dotglob".
dotglob If set, bash includes filenames beginning with a `.' in
the results of pathname expansion.
Regards,
--
Jordan Metzmeier
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive:
http://lists.debian.org/CAD758RgGmOqcRC48iBfgUN7RzjwKhep=mdte6mo97pttvum...@mail.gmail.com