How to Use curl to Download Files from the Linux Command Line

The Linux curl command can do a whole lot more than download files. Find out what curl is capable of, and when you should use it instead of wget.

curl vs. wget : What’s the Difference?

People often struggle to identify the relative strengths of the wget and curl commands. The commands do have some functional overlap. They can each retrieve files from remote locations, but that’s where the similarity ends. wget is a fantastic tool for downloading content and files. It can download files, web pages, and directories. It contains intelligent routines to traverse links in web pages and recursively download content across an entire website. It is unsurpassed as a command-line download manager. curl satisfies an altogether different need.

Yes, it can retrieve files, but it cannot recursively navigate a website looking for content to retrieve. What curl actually does is let you interact with remote systems by making requests to those systems, and retrieving and displaying their responses to you. Those responses might well be web page content and files, but they can also contain data provided via a web service or API as a result of the “question” asked by the curl request.

And curl isn’t limited to websites. curl supports over 20 protocols, including HTTP, HTTPS, SCP, SFTP, and FTP. And arguably, due to its superior handling of Linux pipes, curl can be more easily integrated with other commands and scripts. The author of curl has a webpage that describes the differences he sees between curl and wget.

[mai mult...]

How to Turn your iPhone Screen Black and White

Why Should You Make Your iPhone Screen Black and White?

There are a couple of reasons why you should consider switching your phone to black-and-white. Perhaps most importantly, if you’re colorblind, a grayscale display mode makes it easier for you to distinguish objects and read text better. Though this is primarily an accessibility option, there are uses outside of this to consider too.

A black-and-white screen can help you disconnect and cut back on your screen time by making your phone less fun to use. It makes your Instagram feed look dull and washed out, web pages look dry and bland, and games feel tedious and monotonous. In essence, it makes your phone feel a bit boring, which will (hopefully) motivate you to get off it.

[mai mult...]

How to Fix “Download Pending” in the Play Store

What is the Play Store “Download Pending” Error?

The Google Play Store “Download Pending” error occurs when there’s a problem with the download process. It means that your device is waiting for the download to start. The most common reason why this happens is that you’re trying to download too many apps or updates at once. Downloads happen one after the other, and your download will not start until the apps in the queue have been downloaded. Another major culprit is a poor internet connection. Downloads happen over the internet; if your connection is unstable, it can halt the download and leave it pending. Also, full storage space can affect your downloads on the Play Store. If you do not have space on your Android phone, your download will not be completed. You need enough space for the app to store its files.

[mai mult...]

How to use the ip Command on Linux

How the ip Command Works

With the ip command, you can adjust the way a Linux computer handles IP addresses, network interfaces controllers (NICs), and routing rules. The changes also take immediate effect — you don’t have to reboot. The ip command can do a lot more than this, but we’ll focus on the most common uses in this article. The ip command has many subcommands, each of which works on a type of object, such as IP addresses and routes. There are, in turn, many options for each of these objects. It’s this richness of functionality that gives the ip command the granularity you need to perform what can be delicate tasks. This isn’t ax work — it calls for a set of scalpels. We’ll look at the following objects:

  • Address: IP addresses and ranges.
  • Link: Network interfaces, such as wired connections and Wi-Fi adapters.
  • Route: The rules that manage the routing of traffic sent to addresses via interfaces (links)
[mai mult...]

How to back up Local Group Policy Editor Settings on Windows

Why You Should Back Up the Local Group Policy Editor Settings

The Local Group Policy Editor is a handy Windows utility that allows you to configure group policy settings on your computer. It’s mainly aimed at network administrators, but it can also be used by individuals to manage how their machine performs. You can use the Local Group Policy Editor to change password requirements, configure startup programs, define which applications and settings a user can change, and more. Because the Local Group Policy Editor manages a wide range of necessary settings, it’s important to back it up.

Doing so gives you the freedom to try out different apps, unstable Windows releases, and experimental features without worrying about losing your settings. Even if something goes wrong, you can quickly restore the Local Group Policy Editor settings to bring your computer back to a known good state. It also means that you can transfer the settings to another machine, if you have got a new computer or want to deploy the same configuration across multiple systems.

[mai mult...]