Home » Linux

fsck to Repair Linux File System Errors [4 Commmon Examples]

fsck to Repair Linux File System Errors

Modern computers are incredibly reliable, but things can still go wrong – and the worst thing that can usually go wrong is losing your data – be it important work or your precious photos. Alongside a robust backup system, fsck (File System cheCK) is probably the most important tool you can have on hand to prevent data loss. This tutorial explains how to use fsck to repair file system errors in Linux and takes you through four common examples. fsck verifies the integrity and repairs errors … Read more

Home » Linux

How to Create Linux Symlinks Using the ln Command

Create Linux Symlinks Using the ln Command

This tutorial explains how to create symlinks (symbolic links), also know as “Soft Links,” in Linux using the ln command. If you’re coming to Linux from a background using the Windows operating system, you’ll be familiar with the concept of shortcuts – files that don’t contain any real data and contain a link to the actual file or folder you wish to access. They may exist simply for your convenience (to save time clicking through nested folders) or to redirect the output (You have a … Read more

Home » Linux

Linux rsync Command, Syntax and Examples [Guide]

Linux rsync Command

The rsync (remote synchronization) command is a file copy tool that can synchronize files across local storage disks as well as over a network. It’s prevalent because it’s very good. It is commonly used for backing up files, keeping file servers up-to-date with each other, and for deploying code and assets for web apps to servers. rsync can and will copy just about every file it can see and will synchronize based on file size and modification date to see what’s changed and what needs to be updated. … Read more

Home » Linux

How to Update Ubuntu Linux [Server and Desktop]

Update Ubuntu Linux

If you’re running Ubuntu Linux on your desktop, you’ll be regularly prompted to update using the built-in update tool. But what if you’re on Ubuntu Server or want to check for and run any pending updates manually? This tutorial covers the steps required to update your Ubuntu Linux OS on Desktop and Server. But first, some relevant articles: apt vs. apt-get Commands – What’s the Difference? Checking Your Operating System Version in Ubuntu Linux with ‘lsb_release.’ Preamble All package management functions should be run using the sudo … Read more

Home » Linux

What Is chmod 777 and What Does It Do in Linux?

What Is chmod 777

This article explores chmod 777, a Linux command used to give ALL RIGHTS to the user, group, and others. As a new Linux user, web developer, or system administrator, you have probably been instructed to type: chmod 777 /path/to/file/or/folder …into your Linux shell at some point. Whenever you’re running commands on your systems (especially as root!), you should ALWAYS know what they’re up to. So what’s chmod 777 really about? Permissions in Linux Above is an example of running the: ls -l command, which will list the current directory contents in … Read more

Home » Linux

Using the SCP Command to Securely Copy Files [Examples]

Using the SCP Command

SCP or Secure Copy securely transfers files between two hosts over the network using the SSH protocol. This tutorial explains how to use this popular command with numerous examples. SCP is pre-installed with most Linux distributions and is often used for deploying software to servers and backing up – frequently automated using Bash Scripts. SCP Command Syntax scp OPTIONS SOURCE … TARGET SCP has a lot of options that are outlined on the commands manual, available by running: man scp Here’s a summary of the most commonly used options from the … Read more

Home » Linux

How to Quickly Check your Ubuntu Version [Easy]

Check your Ubuntu Version

It’s important to stay up to date – both for security and compatibility reasons and because it’s always nice to have the latest features in your Linux Operating System. To find out which Linux distribution, and version of that distribution you’re using, use one of the below methods on both the server and desktop versions of Ubuntu based systems: Getting Your Ubuntu Version by reading from the /etc/issue file Type the following into your terminal to read the contents of the file /etc/issue into your terminal: cat /etc/issue You’ll get … Read more

Home » Linux

Bash For Loop [With Examples]

Bash For Loop

The for loop is a handy tool when writing Bash scripts for repeating a task for a number of files, records, or other values. The for statement will iterate over a list of values, performing tasks on each one until all items have been processed. Usage cases include looping over the files in a directory, the lines in a text file, or the output of a database query. Bash For Loop Syntax for VARIABLE in LIST do COMMANDS done Where: VARIABLE is the variable name that will … Read more

Home » Linux

How to Build a Smart Magic Mirror Using a Raspberry Pi Zero [Tutorial]

Build a Smart Mirror

Ever wanted to see check the weather is in Tripoli and read randomized Seinfeld quotes while you’re doing your hair in the morning? Smart mirrors are the DIY project to make that happen. This easy-to-follow tutorial covers how to build a small magic mirror using a Raspberry Pi Zero and a few other bits and pieces. Smart mirrors (also sometimes known as “magic mirrors”) can display live information right in the reflection on a mirror – it looks cool and is actually kind of useful. You can … Read more

Home » Linux

Linux wget Command Guide [With Examples]

Linux wget Command

If you followed our Magic Mirror tutorial, you’d see the wget command was used to download some files. This tutorial explains how to use wget, a command-line tool for downloading (getting) files from the web, be it via HTTP, HTTPS, FTP, or FTPS. Use it to download files from the internet from the Linux shell, call it from Bash scripts – it’s simple and versatile and doesn’t require user interference once started so that it can run in the background. Syntax wget [OPTIONS]… [ URLS ]… … Read more