LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I Entered This Command By Accident (https://www.linuxquestions.org/questions/linux-newbie-8/i-entered-this-command-by-accident-903530/)

hitmen 09-17-2011 08:41 AM

I Entered This Command By Accident
 
What does it do?

cd /home/c/firefox_download ./plugins

AlucardZero 09-17-2011 08:50 AM

It changes directory to /home/c/firefox_download.

druuna 09-17-2011 08:53 AM

Hi,
Quote:

Originally Posted by hitmen (Post 4474408)
What does it do?

cd /home/c/firefox_download ./plugins

You will enter /home/c/firefox_download, nothing else. The cd command takes 1 option, the rest (./plugins in this case) will be ignored.

The command shown doesn't make sense, it looks like something is missing.

This, for example, would execute ./plugins if the cd /home/c/firefox_download command was successful:
Code:

cd /home/c/firefox_download &&./plugins
Hope this helps.

etech3 09-17-2011 08:54 AM

cd = change directory


All times are GMT -5. The time now is 07:45 PM.