From: moonhkt on
On 3月11日, 上午12時45分, Janis Papanagnou <janis_papanag...(a)hotmail.com>
wrote:
> moonhkt wrote:
> >> [...]
>
> > Before post,I asked our UNIX Admin, how to remove files under
> > subdirctory, he provide rm -f to me then remove remain subdirectory by
> > rmdir ...
>
> (Ask your company to hire a second admin for the, umm, more difficult
> questions.)
>
> > In case of too many subdirectory, Usually, Ask Admin delete for me.
> > In my profile, I have alias for  rm='rm -ie'. Each time,I just remove
> > one file one by one.
>
> You really shouldn't have such an alias defined in the first place. But
> if you want the original rm behaviour back (i.e. to ignore the alias and
> option -i) prepend a \ (a backslash) to the call, as (for example) in
>
>    \rm *
>
> Janis

Thank for your suggestion. Your suggestion already recorded on my
Notes Database.
Why not read man page, Somthing command, like rm, will be omit.
From: moonhkt on
On 3月11日, 上午8時49分, moonhkt <moon...(a)gmail.com> wrote:
> On 3月11日, 上午12時45分, Janis Papanagnou <janis_papanag...(a)hotmail.com>
> wrote:
>
>
>
>
>
> > moonhkt wrote:
> > >> [...]
>
> > > Before post,I asked our UNIX Admin, how to remove files under
> > > subdirctory, he provide rm -f to me then remove remain subdirectory by
> > > rmdir ...
>
> > (Ask your company to hire a second admin for the, umm, more difficult
> > questions.)
>
> > > In case of too many subdirectory, Usually, Ask Admin delete for me.
> > > In my profile, I have alias for  rm='rm -ie'. Each time,I just remove
> > > one file one by one.
>
> > You really shouldn't have such an alias defined in the first place. But
> > if you want the original rm behaviour back (i.e. to ignore the alias and
> > option -i) prepend a \ (a backslash) to the call, as (for example) in
>
> >    \rm *
>
> > Janis
>
> Thank for your suggestion. Your suggestion already recorded on my
> Notes Database.
> Why not read man page,  Somthing command, like rm, will be omit.- 隱藏被引用文字 -
>
> - 顯示被引用文字 -

Some man page description may not apply.

Usage: tar -{c|r|t|u|x} [ -BdDEFhilmopRUsvw ] [ -Number ] [ -f
TarFile ]
[ -b Blocks ] [ -S [ Feet ] | [ Feet(a)Density ] |
[ Blocksb ] ]
[ -L InputList ] [-X ExcludeFile] [ -N Blocks ] [ -C
Directory ] File ...
Usage: tar {c|r|t|u|x} [ bBdDEfFhilLXmNopRsSUvw[0-9] ] ]
[ Blocks ] [ TarFile ] [ InputList ] [ ExcludeFile ]
[ [ Feet ] | [ Feet(a)Density ] | [ Blocksb ] ] [-C
Directory ] File ...


e.g. tar some directory , I just want tar my home directory and shell
subdirectory.Due to our testing Machine without backup to tape.

Our Admin suggest to using -L InputList.

tar -cvf abc.tar * -C /home/moonhkt/db

in AIX 5.3 , All directory under my home directory in the tar file
drwxr-xr-x 3 moonhkt adg 256 Sep 21 10:09 DLC
drwxrw---- 2 moonhkt adg 4096 Nov 02 14:24 db
drwxrw---- 2 moonhkt adg 4096 Nov 02 14:24 db9
drwxrw---- 2 moonhkt adg 4096 Mar 10 16:22 log
drwxrw---- 2 moonhkt adg 4096 Mar 11 10:14 shell
drwxrw---- 2 moonhkt adg 256 Mar 11 08:37 temp





From: Kenny McCormack on
In article <xWWln.124082$h21.48563(a)newsfe07.ams2>,
jellybean stonerfish <stonerfish(a)geocities.com> wrote:
....
>Also some commands have built in usage information. This can usually be
>accessed with a '-h' or '--help' option. Try "ls --help" and see what
>it tells you.

Translation: It wouldn't be Unix if it weren't hard to figure out.

It was hard for us (and believe me, I know of what I speak); it should
be hard for you. You'll be a better person for it.

From: Kenny McCormack on
In article <445ecfce-91b0-4bf7-9d51-6b8bac8a0a66(a)w9g2000prb.googlegroups.com>,
moonhkt <moonhkt(a)gmail.com> wrote:
....
>Some man page description are gibberish...:
>
>Usage: tar -{c|r|t|u|x} [ -BdDEFhilmopRUsvw ] [ -Number ] [ -f
>TarFile ]
> [ -b Blocks ] [ -S [ Feet ] | [ Feet(a)Density ] |
>[ Blocksb ] ]
> [ -L InputList ] [-X ExcludeFile] [ -N Blocks ] [ -C
>Directory ] File ...
>Usage: tar {c|r|t|u|x} [ bBdDEfFhilLXmNopRsSUvw[0-9] ] ]
> [ Blocks ] [ TarFile ] [ InputList ] [ ExcludeFile ]
> [ [ Feet ] | [ Feet(a)Density ] | [ Blocksb ] ] [-C
>Directory ] File ...
>
>
>e.g. tar some directory , I just want tar my home directory and shell
>subdirectory.Due to our testing Machine without backup to tape.

Yes. The man pages for some commands, like 'tar' and 'cpio', *are*
gibberish. As a long time Unix user, who uses both of these commands on
a daily basis, I find the man pages absurd. The point is, there's only
a few things you need to know about either command; i.e., there's only a
few command variations that you'll ever use. You have to learn how to
scan the man pages, ignoring the fluff, and pick out the pieces that
matter. This is particularly so with the 'cpio' man page.

From: Ed Morton on
On Mar 10, 10:38 pm, moonhkt <moon...(a)gmail.com> wrote:
> On 3月11日, 上午8時49分, moonhkt <moon...(a)gmail.com> wrote:
>
>
>
>
>
> > On 3月11日, 上午12時45分, Janis Papanagnou <janis_papanag...(a)hotmail.com>
> > wrote:
>
> > > moonhkt wrote:
> > > >> [...]
>
> > > > Before post,I asked our UNIX Admin, how to remove files under
> > > > subdirctory, he provide rm -f to me then remove remain subdirectory by
> > > > rmdir ...
>
> > > (Ask your company to hire a second admin for the, umm, more difficult
> > > questions.)
>
> > > > In case of too many subdirectory, Usually, Ask Admin delete for me.
> > > > In my profile, I have alias for  rm='rm -ie'. Each time,I just remove
> > > > one file one by one.
>
> > > You really shouldn't have such an alias defined in the first place. But
> > > if you want the original rm behaviour back (i.e. to ignore the alias and
> > > option -i) prepend a \ (a backslash) to the call, as (for example) in
>
> > >    \rm *
>
> > > Janis
>
> > Thank for your suggestion. Your suggestion already recorded on my
> > Notes Database.
> > Why not read man page,  Somthing command, like rm, will be omit.- 隱藏被引用文字 -
>
> > - 顯示被引用文字 -
>
> Some man page description may not apply.
>
> Usage: tar -{c|r|t|u|x} [ -BdDEFhilmopRUsvw ] [ -Number ] [ -f
> TarFile ]
>            [ -b Blocks ] [ -S [ Feet ] | [ Feet(a)Density ] |
> [ Blocksb ] ]
>            [ -L InputList ] [-X ExcludeFile] [ -N Blocks ] [ -C
> Directory ] File ...
> Usage: tar {c|r|t|u|x} [ bBdDEfFhilLXmNopRsSUvw[0-9] ] ]
>            [ Blocks ] [ TarFile ] [ InputList ] [ ExcludeFile ]
>            [ [ Feet ] | [ Feet(a)Density ] | [ Blocksb ] ] [-C
> Directory ] File ...
>
> e.g. tar some directory , I just want tar my home directory and shell
> subdirectory.Due to our testing Machine without backup to tape.
>
> Our Admin suggest to using -L InputList.
>
> tar -cvf abc.tar  *  -C   /home/moonhkt/db
>
> in AIX 5.3 , All directory under my home directory in the tar file
> drwxr-xr-x    3 moonhkt   adg             256 Sep 21 10:09 DLC
> drwxrw----    2 moonhkt   adg            4096 Nov 02 14:24 db
> drwxrw----    2 moonhkt   adg            4096 Nov 02 14:24 db9
> drwxrw----    2 moonhkt   adg            4096 Mar 10 16:22 log
> drwxrw----    2 moonhkt   adg            4096 Mar 11 10:14 shell
> drwxrw----    2 moonhkt   adg             256 Mar 11 08:37 temp- Hide quoted text -
>
> - Show quoted text -

Some man pages may be missing and some man pages may contain missing
information and some man pages may be hard to read. Whatever - you
should check the man pages first because if the answer is there then
that approach is usually quicker and easier for you than typing up a
question to post here, and it's always quicker and easier for us :-).

Ed.