Author Topic: Symbolic linked file  (Read 1209 times)

0 Members and 1 Guest are viewing this topic.

Offline kwizzymi

  • Jr. Member
  • **
  • Posts: 8
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Symbolic linked file
« on: November 22, 2018, 12:27:25 pm »
I need to find the source of the symbolic linked file in linux home dir.

I am really struggling to understand but need to submit it really soon

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18002
  • Karma: 465
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Symbolic linked file
« Reply #1 on: November 22, 2018, 01:18:23 pm »
Okay let's say the symbolic link is in your home folder, and is called "mylink" .. open a terminal and run:
Code: [Select]
ls -l ~/mylink
the output should show where the symlink points to.
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline kwizzymi

  • Jr. Member
  • **
  • Posts: 8
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Symbolic linked file
« Reply #2 on: November 22, 2018, 01:38:59 pm »
Thanks, sorry but im not sure what my home folder is?

my line before I enter code looks like
linux@file-permissions:~$

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18002
  • Karma: 465
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Symbolic linked file
« Reply #3 on: November 22, 2018, 01:44:21 pm »
You are already in your home folder
~
represents your home folder in a command path

or you could enter the FULL path which in your case will be
/home/linux

they both mean your home folder.

You could just run:
Code: [Select]
ls -l ~/
which will give you a long listing of ALL home folder contents .. then look through the output for the symlink.
« Last Edit: November 22, 2018, 01:46:27 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 kwizzymi

  • Jr. Member
  • **
  • Posts: 8
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Symbolic linked file
« Reply #4 on: November 22, 2018, 02:09:22 pm »
Thanks, I have the list, but how do I know which one is the symlink?/the source of it?

Edit: I got it actually thanks !!!
« Last Edit: November 22, 2018, 02:27:13 pm by kwizzymi »

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18002
  • Karma: 465
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Symbolic linked file
« Reply #5 on: November 22, 2018, 03:08:10 pm »
sorted then ?
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