LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-30-2011, 07:16 PM   #1
glenellynboy
Member
 
Registered: Jan 2010
Location: Chicago, IL
Distribution: Linpus Linux Lite v1.0.3.E
Posts: 215

Rep: Reputation: 0
How to get pathname for a download located directly under the home directory level?


After accidentally deleting my home directory by deleting home in mnt directory, I downloaded unetbootin for the purpose of changing my operating system from linpus to mint. Since there is no longer a Downloads directory it went into the level just under home, which has some things that weren't deleted in my error.

I am trying to run unetbootin, using sudo, but it won't run and I think it may be because I don't have the right pathname to unetbootin. Another possible reason is the directory I am in in the terminal may be improper for what I want to do.

These are the only two issues I can identify as possible sources of the problem.

Any suggestions or advice?
 
Old 09-30-2011, 07:31 PM   #2
Cultist
Member
 
Registered: Feb 2010
Location: Chicago, IL
Distribution: Slackware64 14.1
Posts: 777

Rep: Reputation: 102Reputation: 102
the directory directly over /home is / (root). so
Code:
cd /
Code:
./unetbootin
should do it for you. If not, you may have to make it an executable, using
Code:
chmod +x unetbootin
, then repeating the previous command.

edit: this is all assuming you're running it as an executable and not trying to install unetbootin as a package.

Last edited by Cultist; 09-30-2011 at 07:34 PM.
 
Old 10-01-2011, 03:25 AM   #3
grail
Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 7,698

Rep: Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988
If I understand correctly, you have not found the file yet? (If you showed what error you are getting it would probably help)

So if it is under /home somewhere you can do:
Code:
find /home -type f -name '*unetbootin*'
If you meant it is unknown where it might be under you can do the same with / instead of /home but I would suggest doing a sudo on it as you will get lots of permissions denied.
 
Old 10-01-2011, 12:48 PM   #4
glenellynboy
Member
 
Registered: Jan 2010
Location: Chicago, IL
Distribution: Linpus Linux Lite v1.0.3.E
Posts: 215

Original Poster
Rep: Reputation: 0
Quote:
The directory directly over /home is / (root). so
Code:

cd /

Code:

./unetbootin

should do it for you.

It looks to me like this is incorrect. Unetbootin is located inside the home directory, not alongside it just under root.
 
Old 10-01-2011, 12:49 PM   #5
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
~ is shorthand for your home directory, so try

Code:
cd ~
and see what's in there with

Code:
ls
 
Old 10-01-2011, 12:49 PM   #6
glenellynboy
Member
 
Registered: Jan 2010
Location: Chicago, IL
Distribution: Linpus Linux Lite v1.0.3.E
Posts: 215

Original Poster
Rep: Reputation: 0
Quote:
If I understand correctly, you have not found the file yet?
Actually I have found the file. It is inside the home directory.
 
Old 10-01-2011, 12:53 PM   #7
glenellynboy
Member
 
Registered: Jan 2010
Location: Chicago, IL
Distribution: Linpus Linux Lite v1.0.3.E
Posts: 215

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Nylex View Post
~ is shorthand for your home directory, so try

Code:
cd ~
and see what's in there with

Code:
ls

It returned "Desktop". But the files window show a lot of other things there, including unetbootin.
 
Old 10-01-2011, 12:55 PM   #8
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
I don't know what "files window" means (presumably some kind of graphical file manager?), but if the file name doesn't show up when you run ls, then it may be because it starts with a dot. You can use the -a option of ls (i.e. "ls -a") to show all files, including those that are hidden because they begin with dots.
 
Old 10-01-2011, 01:02 PM   #9
glenellynboy
Member
 
Registered: Jan 2010
Location: Chicago, IL
Distribution: Linpus Linux Lite v1.0.3.E
Posts: 215

Original Poster
Rep: Reputation: 0
Quote:
So if it is under /home somewhere you can do:
Code:

find /home -type f -name '*unetbootin*'
Here is the output of that, plus my subsequent run attempt:


[root@localhost ~]# find /home -type f -name 'unetbootin-linux-555'
/home/user/unetbootin-linux-555
[root@localhost ~]# sudo /home/user/unetbootin-linux-555
sudo: /home/user/unetbootin-linux-555: command not found
audit_log_user_command(): Connection refused
[root@localhost ~]#

unetbootin didn't run.
 
Old 10-01-2011, 01:08 PM   #10
Ian John Locke II
Member
 
Registered: Mar 2008
Location: /dev/null
Distribution: Slackware, Android, Slackware64
Posts: 130

Rep: Reputation: 17
Run
ls -l /home/user/unetbootin*
If you see something like
-rw-r--r--- user user /home/user/...
Then you need to chmod +x /home/user/filename as was previously mentioned.

Also, I'm writing this from my phone so forgive my not using the filename where needed.
 
1 members found this post helpful.
Old 10-01-2011, 01:22 PM   #11
glenellynboy
Member
 
Registered: Jan 2010
Location: Chicago, IL
Distribution: Linpus Linux Lite v1.0.3.E
Posts: 215

Original Poster
Rep: Reputation: 0
What should my prompt be at this point?
 
Old 10-01-2011, 01:32 PM   #12
glenellynboy
Member
 
Registered: Jan 2010
Location: Chicago, IL
Distribution: Linpus Linux Lite v1.0.3.E
Posts: 215

Original Poster
Rep: Reputation: 0
Ok, I got unetbootin to run. But it only spent a couple seconds on the copy to flash drive. This was what was happening previously.
 
Old 10-01-2011, 04:43 PM   #13
glenellynboy
Member
 
Registered: Jan 2010
Location: Chicago, IL
Distribution: Linpus Linux Lite v1.0.3.E
Posts: 215

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Nylex View Post
I don't know what "files window" means (presumably some kind of graphical file manager?), but if the file name doesn't show up when you run ls, then it may be because it starts with a dot. You can use the -a option of ls (i.e. "ls -a") to show all files, including those that are hidden because they begin with dots.
Yes, now all the hidden files were shown in the terminal, and included was unetbootin.

I use "files window" to refer to exactly that, a graphical file manager provided by linpus.

But I have been able in the mean time to run unetbootin. It ran for a couple seconds. The stick only had a few tiny files afterward.

There is nothing showing inside of "desktop".
 
Old 10-01-2011, 05:23 PM   #14
glenellynboy
Member
 
Registered: Jan 2010
Location: Chicago, IL
Distribution: Linpus Linux Lite v1.0.3.E
Posts: 215

Original Poster
Rep: Reputation: 0
The last time I got to this point, with unetbootin running for only a few seconds, I got advice that led to unetbootin running for a long time, "never ending" in fact, and all of the file went into the hard drive instead of the stick. I never found out where it went because the command I was given by someone got rid of it without addressing it specifically.
 
Old 10-01-2011, 05:55 PM   #15
glenellynboy
Member
 
Registered: Jan 2010
Location: Chicago, IL
Distribution: Linpus Linux Lite v1.0.3.E
Posts: 215

Original Poster
Rep: Reputation: 0
Well, this thread is no longer apt for my project to change operating systems, as I now know the pathname to the file is:

/home/user/unetbootin-linux-555

So I will mark the thread as solved.

Thanks go to all the folks who contributed to this step in my progress, especially Ian John Locke II and Nylex.
 
  


Reply

Tags
home directory


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
Virtual Hosts located in home dirs BostonMark Linux - Server 8 08-28-2007 10:37 AM
Making find do search in a directory that has whitespace in its pathname xode Linux - Software 2 04-18-2006 11:42 AM
Where are drivers located (which directory)? moxieman99 Linux - Newbie 3 01-16-2006 04:46 PM
openOffice template directory - what is the pathname? TSynergy Linux - Software 4 10-11-2004 10:53 PM
What directory is SAMBA located? mysticpain Linux - Software 2 08-18-2004 02:37 PM


All times are GMT -5. The time now is 01:41 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration