Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Troubleshooting CentOS
  • Table Of Contents Toc
Troubleshooting CentOS

Troubleshooting CentOS

By : Jonathan Hobson
4 (3)
close
close
Troubleshooting CentOS

Troubleshooting CentOS

4 (3)
By: Jonathan Hobson

Overview of this book

It is assumed that you will already have a server up and running, you have a good working knowledge of CentOS, and you are comfortable with the concept of working with those services used by your server.
Table of Contents (12 chapters)
close
close
11
Index

Using cURL to access an FTP directory


With practice, everyone can use an FTP client, but a situation where you need to script certain events is where you will call on cURL to do all the hard work.

So, by starting at the most basic level, the easiest way to access an FTP directory with an existing username and password will be as follows:

$ curl ftp://exampleftpsite.com -u <username>

When requested, simply enter your password at the prompt:

$ curl ftp://exampleftpsite.com  -u <username>
Enter host password for user '<username>':

Now, if you want to search an FTP directory for a particular list of files, you can use the -s silent option and grep in combination like this:

$ curl ftp://exampleftpsite.com -u <username> -s | grep <keyword>

You can complete your search and upload a file with the following command:

$ curl -T filename.zip ftp://exampleftpsite.com -u <username>

Or you can make a direct download with the following syntax:

$ curl ftp://exampleftpsite...
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Troubleshooting CentOS
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon