Author Topic: Unexpected link in /media  (Read 267 times)

0 Members and 1 Guest are viewing this topic.

Offline Keith

  • Hero Member
  • *****
  • Posts: 818
  • Karma: 11
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Unexpected link in /media
« on: March 30, 2018, 06:37:38 pm »
I've been messing about with the system.  So no change there, then.  But reading a book on the Linux Command Line is bound to have that effect. 
In particular I played about with creating soft links and now I find the following:

keith@T500:~$ ls -l /media
total 8
drwxr-x---+ 2 root root 4096 Mar 30 18:17 keith
drwxr-xr-x  2 root root 4096 Mar  3 14:52 usb
keith@T500:~$ ls -l /media/keith
total 0
lrwxrwxrwx 1 root root 12 Mar  1 14:33 keith -> /media/keith
keith@T500:~$ ls -l /media/usb
total 0
keith@T500:~$


I wasn't expecting to find that (blue) link and am reluctant to delete it without confirmation from the experts.
Similarly, I wasn't expecting to see usb listed, although it does change to a USB's name when one is inserted. 

Advice would be welcome on what I am seeing.
Thank you

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17601
  • Karma: 451
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Unexpected link in /media
« Reply #1 on: March 30, 2018, 10:50:50 pm »
Yeah you're safe to delete that symlink .. it just point up a directory to /media/keith (so effectively just brings you back to the same place) .. deleting a soft symlink does not delete the file/directory it points to if that's what you're worried about ;)
Code: [Select]
sudo rm -v /media/keith/keith
« Last Edit: March 30, 2018, 10:53:41 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Keith

  • Hero Member
  • *****
  • Posts: 818
  • Karma: 11
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Unexpected link in /media
« Reply #2 on: March 30, 2018, 11:02:36 pm »
Thank you, Mark. 
You know how easily I screw things up, so I thought it as well to check! 

I'm enjoying reading about Linux commands and can see just how very powerful they are.  So powerful, in fact, that you are likely to see me back here with some really good cock-ups. 

Keith

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17601
  • Karma: 451
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Unexpected link in /media
« Reply #3 on: March 31, 2018, 01:16:26 pm »
LOL :)

The CLI is a great tool that really unleashes the power of Linux, keep digging I'm sure you'll enjoy it.
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal