Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When i try to run

mkdir new

I get the error,

 bash: cd: new: No such file or directory

As far as i remember, i haven't changed any file permissions.So what could be the reason for this. Ubuntu 10.04

Update:

$ whereis mkdir

mkdir: /bin/mkdir /usr/share/man/man1/mkdir.1.gz /usr/share/man/man2/mkdir.2.gz

$ whereis cd

cd:

o/p for ls -la

total 68
drwxr-xr-x 13 comp comp  4096 2011-06-15 20:01 .
drwxr-xr-x 43 comp comp  4096 2012-04-02 16:09 ..
drwxr-xr-x  6 comp comp  4096 2011-06-15 20:01 app
drwxr-xr-x  5 comp comp  4096 2011-06-15 20:01 config
drwxr-xr-x  2 comp comp  4096 2011-06-15 20:01 db
drwxr-xr-x  2 comp comp  4096 2011-06-15 20:01 doc
drwxr-xr-x  3 comp comp  4096 2011-06-15 20:01 lib
drwxr-xr-x  2 comp comp  4096 2011-06-15 20:01 log
drwxr-xr-x  5 comp comp  4096 2011-06-15 20:01 public
-rw-r--r--  1 comp comp   307 2011-06-15 20:01 Rakefile
-rw-r--r--  1 comp comp 10011 2011-06-15 20:01 README
drwxr-xr-x  3 comp comp  4096 2011-06-15 20:01 script
drwxr-xr-x  7 comp comp  4096 2011-06-15 20:01 test
drwxr-xr-x  6 comp comp  4096 2011-06-15 20:01 tmp
drwxr-xr-x  3 comp comp  4096 2011-06-15 20:01 vendor
share|improve this question
    
type: whereis mkdir & whereis cd - send the output! –  B. Roland Apr 2 '12 at 11:58
    
Also, do an ls -la of the directory where you created the new directory and give us the output please! –  SirCharlo Apr 2 '12 at 12:08
    
@B.Roland i hav updated the qsn. –  GhostRider Apr 2 '12 at 12:34
    
Try sudo mkdir if you are not in the home folder –  Tachyons Apr 2 '12 at 12:48
add comment

1 Answer 1

up vote 3 down vote accepted

remove this line 'alias mkdir=cd' from ~/.bashrc or /etc/bash.bashrc

share|improve this answer
    
thanx ..it worked –  GhostRider Apr 2 '12 at 14:51
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.