More stories

  • in

    4 Linux commands for managing time (and why that’s important)

    Jack Wallen/ZDNETThe right time helps systems communicate and ensures you can complete tasks — and with Linux, there are a few commands for managing time on your system.Each of the following commands I’ll show you has a different purpose, but they all serve time. Although you may never use these commands, it’s good to know them, especially if you ever intend on using Linux as more than just a desktop operating system.Also: The best Linux distros for beginners: You can do this!Let me introduce you to the commands you need to know to work with time on Linux.1. dateWith date, you can print out or set the system time on your Linux machine. If you run the date command without any arguments, it will print out the date in the format:Mon Jul 15 08:53:41 AM EDT 2024You can also set the time and date with this command. The syntax of such a command would be something like this:sudo date -s “15 July 2024 08:53:00″You can also just set the date like this:date +%Y%m%d -s “20240715”Or set the time with:date +%T -s “08:53:00″2. timedatectlThe timedatectl command ensures your Linux machine is set to the right time zone. You can also use the command to set the time. If your Linux desktop or server doesn’t have the right time (by a few hours), the timezone could be improperly set. Also: The first 5 Linux commands every new user should learnThanks to timedatectl, setting the timezone isn’t all that hard. The trick is to know your timezone. You might be in America/New_York, America/Toronto, or America/Kentucky/Louisville. To find out what timezones are available, issue the command:timedatectl list-timezonesOnce you know your timezone, issue a command like this:sudo timedatectl set-timezone America/Kentucky/LouisvilleYou can also set the date and time with this command like so:timedatectl set-time ‘YYYY-MM-DD HH:MM:SS’For example:timedatectl set-time ‘2024-07-15 08:53:00’3. hwclockNext, we have a command that can manipulate the hardware clock. The hardware clock is known as the Real-Time Clock (RTC), a battery-powered clock on your computer’s motherboard that keeps time, even when the system is powered off. Your computer’s BIOS manages the RTC.Also: There’s a new coolest Linux distribution ready to wow you Should you need to change the hardware clock, Linux has a command for that purpose. You can view the hardware clock with the command:sudo hwclock –showIf you find the hardware clock is wrong, you can set it with a command like this:sudo hwclock –set –date=”YYYY-MM-DD HH:MM:SS”For example:sudo hwclock –set –date=”2024-07-15 09:15:00″4. ntpNow let’s return to timedatectl because the command includes a feature that works with Network Time Protocol (ntp) and keeps your computer in sync with a more reliable networked server. This feature does two things: it ensures your computer has the right time, and keeps you from dealing with time manually.You can enable NTP on your system with the command:sudo timedatectl set-ntp yesOther tools allow you to make use of NTP. For example, you can use timesyncd, which most likely isn’t enabled by default. To enable timesyncd, issue the command:systemctl enable –now systemd-timesyncdNow, your system will always have the correct time. Also: How to enable Linux on your ChromebookTo learn more about these commands, make sure to read the man pages, with the following commands:man dateman timedatectlman hwclockYou won’t find a man page for systemd-timesyncd, but you can learn more about the command from the official Arch Linux Wiki page.Open Source More

  • in

    Save $125 on Amazon’s exclusive Dyson Airwrap bundle just hours before Prime Day kicks off

    Sabrina Ortiz/ZDNETIf you’re chronically online or know anyone hair-obsessed, you already know that the Dyson Airwrap is the styling tool to beat, and it has been for a while. The Airwrap uses air and Dyson’s top-of-the line technology to style your hair flawlessly and with ease (you know, if you’re a twenty-something with a vendetta against heat tools, like me). Also: The best Prime Day deals right nowDespite its popularity, the Airwrap is still an expensive buy, but right now, just a mere hours before Prime Day 2024 kicks off, you can save $125 on Amazon’s exclusive Dyson Airwrap bundle More

  • in

    The 22 best Prime Day 2024 Fire TV deals

    An Amazon Fire TV is one of the best purchases you can make during Prime Day. The annual sales event has historically featured some significant markdowns on these televisions, with prices as low as $100 for a 43-inch 4K Fire TV in years past. However, these deals can be short-lived, so a keen eye is necessary to get the best savings before and during Prime Day.Amazon often offers striking lightning deals for Fire TVs, so much so that they’re quick to run out of stock. The Prime Day sales event features many of these deals, making keeping up with them all difficult. Thankfully, ZDNET will ensure you have access to the top deals on Fire TVs from now through Prime Day. Also: The best Prime Day deals: Live updatesBest Fire TV deals for Amazon Prime Day 2024Amazon Fire TV 4 Series 43-inch More

  • in

    10 simple ways to avoid overspending on Amazon Prime Day

    Jens Büttner/picture alliance via Getty Images Back in 2015, when ZDNET first reported on what we called “Amazon’s Prime Day experiment,” we projected that Prime Day might become an annual event. On that first Prime Day, Amazon moved 34.4 million units, outselling the previous Black Friday of 2014. Last year, consumers (mostly in the US) […] More

  • in

    The 40 best Prime Day 2024 deals under $25

    Amazon Prime Day is a great time to save money on expensive tech items like laptops, tablets, TVs, and more. But if you’re on a strict budget this summer, we at ZDNET have got you covered.You can find some very useful tech products, devices, and other gadgets for under $25, even before Amazon Prime Day deals officially go live tomorrow, July 16. We’ve rounded up the best deals under $25 that are light on your wallet but super helpful in your life.Also: The best Prime Day deals right now Best Amazon Prime Day 2024 deals under $25 Rocketbook Core Reusable Smart Notebook for $24 (save $10) More