LinuxQuestions.org
Visit Jeremy's Blog.
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 06-08-2013, 09:51 PM   #1
yumito
LQ Newbie
 
Registered: May 2013
Posts: 3

Rep: Reputation: Disabled
directory exists but no such directory exists


Problem:
im trying to make a directory called "proj-07" and when i used the mkdir command it worked. when i ls it doesnt show up and when i try to remove it it says no such file or directory. Then i tried to create it again and it says, "cannot create directory file exists"

im at a loss here
 
Old 06-09-2013, 01:05 AM   #2
mddnix
Member
 
Registered: Mar 2013
Location: Bangalore, India
Distribution: Redhat, Arch, Ubuntu
Posts: 506

Rep: Reputation: 139Reputation: 139
It would be more clear if you copy paste commands you typed actually in terminal and its corresponding output it produced, along with ls of that directory.

Last edited by mddnix; 06-09-2013 at 01:25 AM.
 
Old 06-09-2013, 01:16 AM   #3
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
A good trick to learn is to issue the following command as root or using sudo:
Code:
updatedb
It may take a minute or two depending on how much stuff you have on your system. Once the bash prompt return you can then find any file or folder on your system using the locate command (no need for root privileges to use locate.
Code:
locate <*the file or folder you're looking for*>
You should run the updatedb command regularly to keep up to date with your system.
jdk
 
1 members found this post helpful.
Old 06-09-2013, 03:02 AM   #4
kooru
Senior Member
 
Registered: Sep 2012
Posts: 1,385

Rep: Reputation: 273Reputation: 273Reputation: 273
Hi and welcome to LQ!
You should give us where your dir is found.
You can use locate or find.

Code:
find / -name proj-07 -type d -print 2> /dev/null | xargs ls -ld

Last edited by kooru; 06-09-2013 at 03:07 AM.
 
  


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
[SOLVED] How to copy a file when destination directory does not exists. abhinav4 Linux - Newbie 6 10-01-2012 11:59 AM
Checking if a directory exists within makefile SexyBachelor Linux - Newbie 3 05-23-2012 05:29 PM
cannot create directory even if file exists pratikvimal Linux - Newbie 7 06-15-2009 04:51 AM
check if directory exists using shell script v333k Programming 9 04-23-2009 10:29 AM
detecting if a directory exists knobby67 Programming 3 10-06-2008 10:48 AM


All times are GMT -5. The time now is 06:24 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