LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-16-2018, 01:34 AM   #1
tomiki
LQ Newbie
 
Registered: Sep 2015
Posts: 14

Rep: Reputation: Disabled
Show string or path in terminal when opening a file.


I am running Linux Mint 17, Quana, Cinnamon.
i just recently solved a problem involving the program Kolourpaint in the Linux Mint Forum. I couldn't get the file to open. I would type in terminal the file name Kolourpaint and get a string to the error, example
Code:
$ kolourpaint
kolourpaint: error while loading shared libraries: /usr/lib/i386-linux-gnu/libattica.so.0.4: invalid ELF header.
The problem was solved by reinstalling Libattica0.4. But now when I type kolourpaint in the terminal, the system opens the file, which is fine, but what I want to know is what command or option I would have to add to the file name to get the system to show in terminal the path or string, to open the file???
 
Old 11-16-2018, 02:45 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 14,639

Rep: Reputation: 4760Reputation: 4760Reputation: 4760Reputation: 4760Reputation: 4760Reputation: 4760Reputation: 4760Reputation: 4760Reputation: 4760Reputation: 4760Reputation: 4760
so you mean you execute:
kolourpaint <filename>
or something like this, and would like to know the path to <filename> ?
probably readlink -f <filename> would help you.
 
Old 11-16-2018, 10:43 PM   #3
tomiki
LQ Newbie
 
Registered: Sep 2015
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
so you mean you execute:
kolourpaint <filename>
or something like this, and would like to know the path to <filename> ?
probably readlink -f <filename> would help you.
readlink -f shows the location of the <filename>
What I am looking for is the path the <filename> goes through to launch.
 
Old 11-17-2018, 01:08 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 14,569
Blog Entries: 9

Rep: Reputation: 4069Reputation: 4069Reputation: 4069Reputation: 4069Reputation: 4069Reputation: 4069Reputation: 4069Reputation: 4069Reputation: 4069Reputation: 4069Reputation: 4069
Quote:
Originally Posted by tomiki View Post
What I am looking for is the path the <filename> goes through to launch.
it "goes" nowhere.
it stays where it is, and kolourpaint loads it into memory, most likely.
 
1 members found this post helpful.
Old 11-17-2018, 01:35 AM   #5
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 4,789

Rep: Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425
Quote:
Originally Posted by tomiki View Post
readlink -f shows the location of the <filename>
What I am looking for is the path the <filename> goes through to launch.
What is the difference between path and location? Can you give an example what you want to see?

There is no “path” a file “goes through” when it is launched.

EDIT: Perhaps you want this: https://unix.stackexchange.com/quest...loads-when-run.

Last edited by berndbausch; 11-17-2018 at 01:37 AM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to capture 1000 lines before a string match and 1000 line a string match including line of string match ? sysmicuser Linux - Newbie 12 11-14-2017 05:21 AM
How to show selected string using grep from file and replace it with new input string prasad1990 Linux - Software 2 03-19-2015 08:02 AM
[SOLVED] copy string a to string b and change string b with toupper() and count the chars beep3r Programming 3 10-22-2010 07:22 PM
Shell scripting - Getting just directory string from file path string? arashi256 Programming 5 10-16-2009 08:21 AM
output the path for files whose names include string "string" (case insensitive) sean_zhang Linux - Newbie 1 03-04-2008 11:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration