AIX

AIX

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


#Power
#Power
 View Only
  • 1.  How delete a special file?

    Posted Tue February 17, 2009 02:10 PM

    Originally posted by: Kyne


    When I do an "ls" , I see this:

    /var/spool] ls
    lpd mqueue rwho uucp writesrv
    cron mail qdaemon secretmail uucppublic
    /var/spool ] ls | od -cx
    0000000 \b \n c r o n \n l p d \n m a i l \n
    080a 6372 6f6e 0a6c 7064 0a6d 6169 6c0a
    0000020 m q u e u e \n 0 .......



    \b is a backspace

    How can I delete a file name like a backspace?
    #AIX-Forum


  • 2.  Re: How delete a special file?

    Posted Tue February 17, 2009 02:11 PM

    Originally posted by: Kyne


    When I show the output of the "ls", sorry but we don't see that there is a blank before "lpd"...
    #AIX-Forum


  • 3.  Re: How delete a special file?

    Posted Sun September 30, 2012 10:23 AM

    Originally posted by: Markovin


    Long Path Tool helped me in this situation. http://PathTooDeep.com
    #AIX-Forum


  • 4.  Re: How delete a special file?

    Posted Tue February 17, 2009 02:29 PM

    Originally posted by: unixgrl


    Try putting quotes around your filename or using "rm -i *" That will make
    rm prompt you yes/no for each file it finds.
    #AIX-Forum


  • 5.  Re: How delete a special file?

    Posted Wed February 18, 2009 03:10 AM

    Originally posted by: syedsaleembasha


    i faced similar issue. i used ftp client of reflection and renamed the file in windows screen and deleted it. u can give a try.
    #AIX-Forum


  • 6.  Re: How delete a special file?

    Posted Wed February 18, 2009 04:02 AM

    Originally posted by: SystemAdmin


    one way of deleting this file is by i-node number
    ls -li shows the inode number

    find / -inum <inodenumber> -ok rm {} \;
    #AIX-Forum