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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-27-2012, 01:05 PM
|
#1
|
LQ Newbie
Registered: Jun 2012
Posts: 9
Rep: 
|
Directory Issue
I thought I created a directory called "Saved"
I was pretty sure I did it with 'mkdir Saved' and then I saw it was there and proceeded to move several files into it with 'mv filename directoryname'
Now when I try to put in 'cd Saved' it says no such directory, but when I try to recreate it with 'mkdir Saved' it says it is already there? ALSO, it is not BLUE in color such as other working directories are?
I was experimenting with 'touch' around that time and may have created the directory with 'touch Saved' but I do not think so, not impossible however.
|
|
|
06-27-2012, 01:16 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
just run "ls -l" and show us the output if it's not clear to you.
|
|
|
06-27-2012, 01:22 PM
|
#3
|
LQ Newbie
Registered: Jun 2012
Posts: 9
Original Poster
Rep: 
|
-rw-rw-r-- 1 UpsonS UpsonS 177 June 27 11:49 Saved
I don't see the typical dr in front, so did I do it with 'touch'? Anyway to recover what was moved to Saved?
|
|
|
06-27-2012, 02:03 PM
|
#4
|
LQ Addict
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841
|
Try cd /home/user-name/Saved
change user-name to actual users name
|
|
|
06-27-2012, 09:14 PM
|
#5
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,442
|
Code:
-rw-rw-r-- 1 UpsonS UpsonS 177 June 27 11:49 Saved
Note the first '-', which denotes the type. A '-' means a regular file, a dir has 'd' and so on eg http://bashshell.net/file-permission...ux-file-types/.
You can also use the 'file' cmd http://linux.die.net/man/1/file to check acual type.
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 07:46 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|