Following are the handy/useful list of commands & usage that we need from time to time.
Table Of Contents
Curl
- Download a remote file
curl-O[URL]
Or
curl –-remote-name[URL]
An example would be:
curl-O https://en-au.wordpress.org/latest-en_AU.zip
Or
curl –-remote-name https://en-au.wordpress.org/latest-en_AU.zip
- To save a remote file with a different name:
curl –O[FILENAME][URL]
- Download multiple remote files
curl-O[URL1]-O[URL2]
- Download a remote file via FTP
curl-O[FTP_URL]
- Download remote files via FTP with credentials
curl-u[FTP_USER]:[FTP_PASSWORD]-O[FTP_URL]
Wget
- Download a remote file
wget[URL]
- Download a remote file with a different name
wget-O[FILENAME][URL]
- Download a remote file via FTP
wget[FTP_URL]
- Download files via FTP with credentials
wget-u[FTP_USER]:[FTP_PASSWORD]-O[FTP_URL]
Unzip
- Test if a zip file is valid file
unzip-t[ZIP_FILE_PATH]
An example would be:
unzip-t ./test.zip
- List contents of a zip file
unzip-l[ZIP_FILE_PATH]
- Extract a zip file
unzip[ZIP_FILE_PATH]
- Extract a zip file to a different location/directory
unzip[ZIP_FILE_PATH] –d[DESTINATION_DIRECTORY_PATH]
Top comments(0)
Subscribe
For further actions, you may consider blocking this person and/orreporting abuse