How to create and enter a directory in GNU/Linux ?
mkdir Pics | cd Pics
Gives :
bash: cd: Pics: No such file or directory
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to use
;between commands. SoWhat you have written is called a pipe. That means the output of the first program is used as the input to the other, which doesn’t make sense because the output of
mkdiris nothing or an error andcddoesn’t read from input.By the way, ask questions like this in super user