WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: cannot delete link  (Read 2043 times)

Offline manit123

  • Sr. Member
  • ****
  • Posts: 315
cannot delete link
« on: December 05, 2013, 01:55:01 AM »
Code: [Select]
$ls /etc/sysconfig/
total 32
drwxrwxr-x  2 root root  240 Dec  4 15:08 ./
drwxr-xr-x 14 tc   staff 880 Dec  4 15:08 ../
-rw-r--r--  1 root root    5 Dec  4 15:08 Xserver
-rw-r--r--  1 root root    2 Dec  4 15:08 backup
-rw-rw-r--  1 root staff   9 Dec  4 15:08 backup_device
-rw-r--r--  1 root root   13 Dec  4 15:08 desktop
-rw-r--r--  1 root root   10 Dec  4 15:08 keymap
-rw-r--r--  1 root root    7 Dec  4 15:07 language
-rw-r--r--  1 root root    4 Dec  4 15:08 mydata
-rw-r--r--  1 root root    0 Dec  4 15:08 newmodules
lrwxrwxrwx  1 root root   13 Dec  4 15:07 tcedir -> /mnt/sda1/tce
-rw-r--r--  1 root root    3 Dec  4 15:07 tcuser
$sudo rm  /etc/sysconfig/tcedir/
rm: cannot remove `/etc/sysconfig/tcedir/': Is a directory

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: cannot delete link
« Reply #1 on: December 05, 2013, 01:56:54 AM »
What you can't delete is a directory not a link. Try

Code: [Select]
rm -r
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline manit123

  • Sr. Member
  • ****
  • Posts: 315
Re: cannot delete link
« Reply #2 on: December 05, 2013, 02:59:24 AM »
Wouldn't that delete all files & folders inside  /mnt/sda1/tce (including itself) ?

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: cannot delete link
« Reply #3 on: December 05, 2013, 08:45:17 AM »
Instead of
sudo rm  /etc/sysconfig/tcedir/
try
sudo rm  /etc/sysconfig/tcedir


Offline manit123

  • Sr. Member
  • ****
  • Posts: 315
Re: cannot delete link
« Reply #4 on: December 09, 2013, 01:43:10 AM »
will try