Home » Linux

How to Install Ubuntu MATE 2020.10 on a Raspberry Pi (With Screenshots)

How to Install Ubuntu MATE 2020.10 on a Raspberry Pi

Ubuntu is (arguably) the most popular Linux distribution. Ubuntu MATE is a great, performance-conscious, lightweight Ubuntu-based distribution that is perfect for low-cost platforms like the Raspberry Pi where you may want to forgo some of the bells and whistles for better performance. If you’re just getting started learning Linux and programming you may not want to risk trying things out on your day-to-day computer (you might be worried about breaking it for work or school), a Raspberry Pi is a great way to experiment with … Read more

Home » Linux

ls Command in Linux to List Files and Directories

ls Command in Linux

The ls command in Linux is likely one of the first commands you ever need to use. In this article, we’ll go over the command and commonly used parameters. My preferred set of options is as follows: ls -Zaltrh Let’s dig into each option individually, and explain why the entire glob of options is helpful. Linux LS Command Syntax #ls [OPTION] [FILE] OPTIONS: [-a], do not ignore entries starting with . or .. [-h], with -l, print sizes in human readable format (e.g., 1K 234M … Read more

Home » Linux

Using the ‘pwd’ Command in Linux, with Examples

Using the ‘pwd’ Command in Linux

Whether you’re developing Python apps on Linux, or just organizing your files from the shell, it’s important to be able to find out which folder you are currently navigating. The pwd command will do that for you – it prints the name of the current directory you are navigating in the terminal – including its full path. This is extremely useful in any Linux environment as it will remove all confusion about which folder you’re in, as it’s very common for there to be multiple folders of … Read more

Home » Linux

Vim / Vi: Deleting lines

Vim / Vi: Deleting lines

This tutorial will teach you how to delete single, blank, or multiple lines in Vim / Vi by using a pattern or range. Vim is ubiquitous, and it’s everywhere. Learning how to edit, remove, yank, paste, and everything else can help you speed through tasks. Before we get started, let’s turn on line numbers: Press ESC (pressing escape brings you into normal mode) Type :set number (brings you into command mode) Line numbers, voila! Simple Deletion The two basic usages of the d-shortcut, delete a single … Read more

Home » Linux

Systemctl: How to List Services (Status, Control, and Tips)

Systemctl: Status, Control, and Tips

In this guide, we explain how to use systemctl to list services and check on their status. We will also cover some of the other uses for systemctl. Coming from run_init service, systemctl is a breath of fresh air. I’m sure there are many reasons I’m wrong and I’ve heard the debates for and against it and changed my mind a few times. After using it daily at work, I’m in the systemctl camp now. The language of the command feels more natural now. On … Read more

Home » Linux

How to Kill a Process in Linux

Killing Processes

There are numerous methods that can be utilized to kill a process in Linux. This tutorial will teach you how to find and kill broken processes. A process can become orphaned easily. Whether on purpose or not, a parent process can crash and leave a child process running. Sometimes, a parent process fails to reap a completed child process, and it becomes a zombie. Both of these processes are stuck and need manual intervention. Enter job control. Let’s take a look at how to kill … Read more

Home » Linux

How to Rename a Directory in Linux

Rename Directories

In this tutorial, we explain how to rename a directory in Linux, using the “mv” and “rename” commands. Renaming directories is not very different from renaming files. Because after all, this is Linux, where everything is a file. Even the directories. So, most of what we discussed with renaming files works here too. Renaming directories with mv mv RenameDir/ renameDir There it is. Just mv it, like the song. Only special concerns, if you have anything directed to the directory. Make sure to search your … Read more

Home » Linux

Renaming Files in Linux – 2 Simple Methods

Renaming Files

In this article, we explain how to rename a file, or multiple files in Linux, using two different methods. Let’s dig into renaming files, the use of mv and rename, and why we use specific tools. Renaming files with mv – No longer the recommended method You have a web directory that somehow, the extensions became corrupt. We’re going to use the blog’s files for our example. ping www.linuxscrew.com #Test connectivity first. wget -m www.linuxscrew.com #Mirror on We are now the proud owner of a … Read more

Home » Linux

The Linux ‘cp’ Command: Copy files and Directories

'cp' Command

This tutorial will teach you to use the Linux cp command – the command that copies files from one directory to another. Linux is the preferred platform for a lot of developers. If you’re new to Linux it won’t be long before you need to start copying files from one place to another – read on for an explanation of the Linux cp command and some tips and tricks on how to use it. The cp Command The cp command has a simple purpose – to copy files and folders … Read more

Home » Linux

Best Raspberry Pi and Pi Zero Projects – Upgrade Your Home With Our Favourite Picks

Best Raspberry Pi and Pi Zero Projects

Looking for some home projects to keep you occupied over the winter months? LinuxScrew has you covered with this collection of Raspberry Pi projects for your home! Best Raspberry Pi Projects Raspberry Pis are cheap single-board computers that can be used for a variety of tasks – from desktop computers to web servers, and automation. Read on for some great projects for your home that utilize the Raspberry Pi and Pi Zero. Raspberry Pi CCTV System Turn a raspberry pi and a USB webcam into … Read more