AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
  • 1.  Aix dash in directory name

    Posted Sun March 02, 2008 05:01 PM

    Originally posted by: SystemAdmin


    Hello all,

    I have created a directory in AIX and by mistake I have " - " in the name of the file...How can I delete my directory? or rename it?

    I have tried: rm -r "-config" does not work....rm -r \-config still not working...Is there a way to delete this?
    #AIX-Forum


  • 2.  Re: Aix dash in directory name

    Posted Sun March 02, 2008 06:47 PM

    Originally posted by: orphy


    rmdir -- -config
    Orphy
    #AIX-Forum


  • 3.  Re: Aix dash in directory name

    Posted Sun March 02, 2008 10:24 PM

    Originally posted by: chandru0078


    try rm -rf -config or rmdir -config

    chandru0078
    #AIX-Forum


  • 4.  Re: Aix dash in directory name

    Posted Sun March 02, 2008 10:38 PM

    Originally posted by: chandru0078


    hi Orphy

    you right.mine not working.sorry.to rename the directory can use mv -config config

    thanks
    #AIX-Forum


  • 5.  Re: Aix dash in directory name

    Posted Mon March 03, 2008 09:59 AM

    Originally posted by: orphy


    Actually, you need to do this to rename.

    mv -- -config config
    Orphy
    #AIX-Forum


  • 6.  Re: Aix dash in directory name

    Posted Tue March 04, 2008 04:55 AM

    Originally posted by: chandru0078


    hi .thanks to correct me.may i know mv" --" stand for which flag or what is the function of that? Thanks a lot.
    #AIX-Forum


  • 7.  Re: Aix dash in directory name

    Posted Tue March 04, 2008 10:18 AM

    Originally posted by: orphy


    • "--" tells getopt not to process any more options.
    Orphy

    Message was edited by: orphy
    #AIX-Forum