Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Ibrar Hussain
Ibrar Hussain

Posted on

     

Useful Commands for Ubuntu

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]
Enter fullscreen modeExit fullscreen mode

Or

curl –-remote-name[URL]
Enter fullscreen modeExit fullscreen mode

An example would be:

curl-O https://en-au.wordpress.org/latest-en_AU.zip
Enter fullscreen modeExit fullscreen mode

Or

curl –-remote-name https://en-au.wordpress.org/latest-en_AU.zip
Enter fullscreen modeExit fullscreen mode
  • To save a remote file with a different name:
curl –O[FILENAME][URL]
Enter fullscreen modeExit fullscreen mode
  • Download multiple remote files
curl-O[URL1]-O[URL2]
Enter fullscreen modeExit fullscreen mode
  • Download a remote file via FTP
curl-O[FTP_URL]
Enter fullscreen modeExit fullscreen mode
  • Download remote files via FTP with credentials
curl-u[FTP_USER]:[FTP_PASSWORD]-O[FTP_URL]
Enter fullscreen modeExit fullscreen mode

Wget

  • Download a remote file
wget[URL]
Enter fullscreen modeExit fullscreen mode
  • Download a remote file with a different name
wget-O[FILENAME][URL]
Enter fullscreen modeExit fullscreen mode
  • Download a remote file via FTP
wget[FTP_URL]
Enter fullscreen modeExit fullscreen mode
  • Download files via FTP with credentials
wget-u[FTP_USER]:[FTP_PASSWORD]-O[FTP_URL]
Enter fullscreen modeExit fullscreen mode

Unzip

  • Test if a zip file is valid file
unzip-t[ZIP_FILE_PATH]
Enter fullscreen modeExit fullscreen mode

An example would be:

unzip-t ./test.zip
Enter fullscreen modeExit fullscreen mode
  • List contents of a zip file
unzip-l[ZIP_FILE_PATH]
Enter fullscreen modeExit fullscreen mode
  • Extract a zip file
unzip[ZIP_FILE_PATH]
Enter fullscreen modeExit fullscreen mode
  • Extract a zip file to a different location/directory
unzip[ZIP_FILE_PATH] –d[DESTINATION_DIRECTORY_PATH]
Enter fullscreen modeExit fullscreen mode

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

I am a full stack web developer with experience working on Laravel and Vue. I am passionate about exploring and learning new technologies in the field.
  • Location
    Melbourne
  • Work
    Full Stack Web Developer
  • Joined

More fromIbrar Hussain

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp