Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

where is ubuntu server default download directory [closed]

Tags:

linux

ubuntu

I am new at ubuntu server. I downloaded a zip file like this.

sudo wget http://domain/downloads/1806

But I could not find it now. There is a download file in /home/username folder. But this is not a folder. I can not use ls command like this: ls /home/username/download it gives a message Not a directory.

like image 835
barteloma Avatar asked Jun 10 '14 08:06

barteloma


1 Answers

When you run:

sudo wget http://domain.com/downloads/1806

it will download it into the current directory.

You can find your current directory by typing pwd

Note that wget sometimes saves the file with a name you might not be expecting - especially if there is a query string on the end of the URL - EG url/?a=1&b=2

If you run

ls -lrt

it will list the contents of the current directory, sorted with the newest file at the bottom. So if you run this straight after your download, you'll see the downloaded file as the last one listed.

Hope this helps,

Will

like image 117
Will Avatar answered Oct 27 '22 00:10

Will