WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: cannot delete link  (Read 1124 times)

Offline manit123

  • Sr. Member
  • ****
  • Posts: 315
cannot delete link
« on: December 04, 2013, 10:55:01 PM »
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: 7003
    • My Community Forum
Re: cannot delete link
« Reply #1 on: December 04, 2013, 10:56:54 PM »
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 04, 2013, 11:59:24 PM »
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, 05: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 08, 2013, 10:43:10 PM »
will try