<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: remove directory in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-directory/m-p/4235746#M329284</link>
    <description>&amp;gt;Sanjeev: I think best way is&lt;BR /&gt;rm -r "U\033[2~03" this will delete this directory only.&lt;BR /&gt;&lt;BR /&gt;You, Tim and JRF are confusing escape mechanisms.&lt;BR /&gt;&lt;BR /&gt;This isn't going to work in a real shell.  Those shells know nothing about \033.  Though your suggestion leads to this:&lt;BR /&gt;cd "U^V(ESC)[2~03"&lt;BR /&gt;(That's control-V followed by Esc or ^[ below.)&lt;BR /&gt;&lt;BR /&gt;$ mkdir "U^[[2~03"&lt;BR /&gt;$ ll -b&lt;BR /&gt;drwxrwxr-x  U\033[2~03/&lt;BR /&gt;$ cd "U^[[2~03"&lt;BR /&gt;$ pwd&lt;BR /&gt;/var/tmp/U2~03&lt;BR /&gt;$ pwd | vis&lt;BR /&gt;/var/tmp/U\e[2~03&lt;BR /&gt;&lt;BR /&gt;Cleanup and files and subdirectories.&lt;BR /&gt;$ cd ..&lt;BR /&gt;$ rmdir -i "$OLDPWD"&lt;BR /&gt;(Checking the name carefully.)&lt;BR /&gt;&lt;BR /&gt;And your suggestion also leads to:&lt;BR /&gt;$ cd $(echo "U\033[2~03")&lt;BR /&gt;&lt;BR /&gt;Or if there are embedded blanks:&lt;BR /&gt;$ cd "$(echo 'U\033[2~03')"</description>
    <pubDate>Fri, 18 Jul 2008 08:21:24 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2008-07-18T08:21:24Z</dc:date>
    <item>
      <title>remove directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-directory/m-p/4235735#M329273</link>
      <description>A directory (U03)is been created while i configured a logical volume, but i can not remove it. see the error message.&lt;BR /&gt;&lt;BR /&gt;-----------------&lt;BR /&gt;ls -s /&lt;BR /&gt;drwxr-xr-x   2 root       sys             96 Jul 17 09:14 U03&lt;BR /&gt;-----------------&lt;BR /&gt;error message: &lt;BR /&gt;# rm -r /U03&lt;BR /&gt;rm: /U03 non-existent</description>
      <pubDate>Thu, 17 Jul 2008 11:25:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-directory/m-p/4235735#M329273</guid>
      <dc:creator>kacou</dc:creator>
      <dc:date>2008-07-17T11:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: remove directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-directory/m-p/4235736#M329274</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Check the logs.&lt;BR /&gt;&lt;BR /&gt;Either its really not there or you are not giving the correct path.&lt;BR /&gt;&lt;BR /&gt;rm -rf /U03&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you created a logical volume using lvcreate then it will have a path set in the volume group configuration directory.&lt;BR /&gt;&lt;BR /&gt;Lets say I created lvol1 in vg01&lt;BR /&gt;&lt;BR /&gt;The entry for this logical volume is in /dev/vg01  lvol1 and rlvol2&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 17 Jul 2008 11:29:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-directory/m-p/4235736#M329274</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2008-07-17T11:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: remove directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-directory/m-p/4235737#M329275</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;If the directory isn't truly non-existent, then its name probably contains unprintable characters.  You can do:&lt;BR /&gt;&lt;BR /&gt;# ls -bl /U03&lt;BR /&gt;&lt;BR /&gt;...to see the unprintable characters as octal values&lt;BR /&gt;&lt;BR /&gt;You could do (carefully):&lt;BR /&gt;&lt;BR /&gt;# rm -r /U03*&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 17 Jul 2008 11:35:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-directory/m-p/4235737#M329275</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-07-17T11:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: remove directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-directory/m-p/4235738#M329276</link>
      <description>after doing the ls -lb / commande i hage got this error mesage.&lt;BR /&gt;---------&lt;BR /&gt;#ls -lb /&lt;BR /&gt;drwxr-xr-x   2 root       sys             96 Jul 17 09:14 U\033[2~03&lt;BR /&gt;&lt;BR /&gt;-----------&lt;BR /&gt;so what is the command to remove it/</description>
      <pubDate>Thu, 17 Jul 2008 12:36:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-directory/m-p/4235738#M329276</guid>
      <dc:creator>kacou</dc:creator>
      <dc:date>2008-07-17T12:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: remove directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-directory/m-p/4235739#M329277</link>
      <description>You MUST BE CAREFULL with this as there are a number of invalid chars in your dir name.&lt;BR /&gt;&lt;BR /&gt;ls -l /U*033*&lt;BR /&gt;if this returns only your messed up dir&lt;BR /&gt;then&lt;BR /&gt;rmdir /U*033*&lt;BR /&gt;or&lt;BR /&gt;find / -name "U*033*" -exec ls -ld {} \;&lt;BR /&gt;if this returns only the messed up dir &lt;BR /&gt;then&lt;BR /&gt;find / -name "U*033*" -exec rmdir {} \;&lt;BR /&gt;(I purposefully did not use rm -r)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Jul 2008 12:44:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-directory/m-p/4235739#M329277</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2008-07-17T12:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: remove directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-directory/m-p/4235740#M329278</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;You could do:&lt;BR /&gt;&lt;BR /&gt;# rm -r /U\033[2~03&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 17 Jul 2008 12:45:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-directory/m-p/4235740#M329278</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-07-17T12:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: remove directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-directory/m-p/4235741#M329279</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;try the rmdir -i option&lt;BR /&gt;&lt;BR /&gt;# rmdir -i U*&lt;BR /&gt;&lt;BR /&gt;and answer yes to one above U\033[2~03&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Jul 2008 12:52:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-directory/m-p/4235741#M329279</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2008-07-17T12:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: remove directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-directory/m-p/4235742#M329280</link>
      <description>i have another directory U01 and U02.&lt;BR /&gt;so doing this command can delete all U* directory</description>
      <pubDate>Thu, 17 Jul 2008 13:33:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-directory/m-p/4235742#M329280</guid>
      <dc:creator>kacou</dc:creator>
      <dc:date>2008-07-17T13:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: remove directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-directory/m-p/4235743#M329281</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; i have another directory U01 and U02.&lt;BR /&gt;so doing this command can delete all U* directory&lt;BR /&gt;&lt;BR /&gt;Yes, if you do:&lt;BR /&gt;&lt;BR /&gt;# rm /U*&lt;BR /&gt;&lt;BR /&gt;...you are asking the shell to expand "U" into every file and/or directory that begins with that letter and then run the remove command on those objects.&lt;BR /&gt;&lt;BR /&gt;I *URGE* you to add the interactive ('-i') option to commands like this *or* to first examine what is going to happpen by doing:&lt;BR /&gt;&lt;BR /&gt;# echo /U*&lt;BR /&gt;&lt;BR /&gt;# rm -i /U*&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 17 Jul 2008 14:31:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-directory/m-p/4235743#M329281</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-07-17T14:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: remove directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-directory/m-p/4235744#M329282</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;I'm sorry, my last answer was wrong for the way your question was worded.&lt;BR /&gt;&lt;BR /&gt;You need to use 'rmdir' to remove a directory.  Further, that only removes an *empty* directory.  You *can* use 'rm' to remove a directory and all its contents, however, if you add the '-r' flag to descend into the directory (r)ecursively.&lt;BR /&gt;&lt;BR /&gt;Hence, if you do:&lt;BR /&gt;&lt;BR /&gt;# rm -r /U*&lt;BR /&gt;&lt;BR /&gt;...you would remove *all* directories and files that begin with the letter "U".  You would be much better advised to first check what's going to happen by first doing:&lt;BR /&gt;&lt;BR /&gt;# echo /U*&lt;BR /&gt;&lt;BR /&gt;and/or adding the '-i' flag:&lt;BR /&gt;&lt;BR /&gt;# rm -r -i /U*&lt;BR /&gt;&lt;BR /&gt;...unless you are very sure of what you are asking.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 17 Jul 2008 14:50:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-directory/m-p/4235744#M329282</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-07-17T14:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: remove directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-directory/m-p/4235745#M329283</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I think best way is&lt;BR /&gt;&lt;BR /&gt;rm -r "U\033[2~03" this will delete this directory only.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Sanjeev</description>
      <pubDate>Fri, 18 Jul 2008 06:30:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-directory/m-p/4235745#M329283</guid>
      <dc:creator>Sharma Sanjeev</dc:creator>
      <dc:date>2008-07-18T06:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: remove directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-directory/m-p/4235746#M329284</link>
      <description>&amp;gt;Sanjeev: I think best way is&lt;BR /&gt;rm -r "U\033[2~03" this will delete this directory only.&lt;BR /&gt;&lt;BR /&gt;You, Tim and JRF are confusing escape mechanisms.&lt;BR /&gt;&lt;BR /&gt;This isn't going to work in a real shell.  Those shells know nothing about \033.  Though your suggestion leads to this:&lt;BR /&gt;cd "U^V(ESC)[2~03"&lt;BR /&gt;(That's control-V followed by Esc or ^[ below.)&lt;BR /&gt;&lt;BR /&gt;$ mkdir "U^[[2~03"&lt;BR /&gt;$ ll -b&lt;BR /&gt;drwxrwxr-x  U\033[2~03/&lt;BR /&gt;$ cd "U^[[2~03"&lt;BR /&gt;$ pwd&lt;BR /&gt;/var/tmp/U2~03&lt;BR /&gt;$ pwd | vis&lt;BR /&gt;/var/tmp/U\e[2~03&lt;BR /&gt;&lt;BR /&gt;Cleanup and files and subdirectories.&lt;BR /&gt;$ cd ..&lt;BR /&gt;$ rmdir -i "$OLDPWD"&lt;BR /&gt;(Checking the name carefully.)&lt;BR /&gt;&lt;BR /&gt;And your suggestion also leads to:&lt;BR /&gt;$ cd $(echo "U\033[2~03")&lt;BR /&gt;&lt;BR /&gt;Or if there are embedded blanks:&lt;BR /&gt;$ cd "$(echo 'U\033[2~03')"</description>
      <pubDate>Fri, 18 Jul 2008 08:21:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-directory/m-p/4235746#M329284</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-07-18T08:21:24Z</dc:date>
    </item>
  </channel>
</rss>

