LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how do I specify the current directory on the command line (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-specify-the-current-directory-on-the-command-line-648525/)

powerpleb 06-11-2008 05:24 AM

how do I specify the current directory on the command line
 
I'm trying to figure out how to specify the current directory on the command line. For example, now, when I'm in a directory that I want to copy something into I would do something like this:
Code:

user@host:~/Documents/Uni$ cp /mnt/sda2/path/file ~/Documents/Uni
Is there a shortcut to specify the current directory?

Edit: BTW I am using bash

Nylex 06-11-2008 05:26 AM

Yes, it's a dot: .
Also, ".." is short for the parent directory.

reddazz 06-11-2008 05:27 AM

Use a dot e.g.
Code:

cd ~/Documents/Uni
cp /mnt/sda2/path/file .


powerpleb 06-11-2008 05:28 AM

Quote:

Originally Posted by Nylex (Post 3181394)
Yes, it's a dot: .

LOL. It's so simple, thanks a lot!


All times are GMT -5. The time now is 02:23 PM.