This article will outline how to delete files and directories in Linux with the rm command and give example usage. The rm Command in Linux Files and directories can be deleted from the shell/command line in Linux using the rm command. rm Command Syntax rm OPTIONS FILES Note that: OPTIONS is a… Read More »Remove/Delete Files/Directories in Linux with rm
This article will walk you through moving files in Linux with the mv command, with examples and tips on moving files safely. mv Syntax Moving files is done using the mv command, which has the following syntax mv OPTIONS SOURCE DESTINATION Note that: OPTIONS is a list of options from… Read More »Move Files With the mv Command in Linux, With Examples
Here’s a quick summary of Unix and Linux and what makes them different, and ways you can try them out. Different products, similar uses What is Unix? Unix was developed in the 1970s by Bell Labs as an Operating System for developers. Over time features… Read More »Unix vs Linux – What’s the Difference?
Bash/Shell scripts usually run sequentially until all of the code in the file has been executed. The exit command will exit the script before this based on conditions of your choosing. exit Command Syntax Here’s the syntax for the exit command, which can be used in Bash/Shell scripts: exit… Read More »Exiting Bash Scripts with the exit Command, With Examples
We’ve covered using variables in Bash previously – this article will explain Bash array variables and provide some example usage. What is an Array An array is a type of variable that can hold multiple values. It’s a list of values you can loop through and perform operations… Read More »Array Variables in Bash, How to Use, With Examples
This article will explain what the [email protected] is in Bash and Bash/Shell scripting and how and why you might use it. The [email protected] variable is a special variable in Bash which holds the value of all of the command line arguments/parameters passed to the script. Command Line Arguments/Parameters in Bash… Read More »What is [email protected] (Command Line Arguments) In Bash/Linux?
Running out of disk space? Here’s how to find large files in Ubuntu (and other Linux distributions) without any fuss using the du and ncdu commands. The du Command The du (Disk Usage) command does what it says it does – tells you about the disk usage of files in a given directory. du Command… Read More »Find Large Files in Ubuntu/Linux (du/ncdu), With Examples
If you’ve recently updated your network configuration or just can’t get things to connect, you may need to restart the networking services on your Ubuntu System to get things back up and running. Restarting the network is particularly useful if you’re recently updated your WiFi… Read More »Restarting the Network in Ubuntu [Instructions/Example]
The diff command is an easy way to compare files or directories from the Linux shell. This article will show you how to use it, with some examples of common usage. The diff command performs a line-by-line comparison of two files or directories and outputs the differences between… Read More »Linux diff – How to Show Differences and Make Patches, With Examples
We’ve all been there (I’ve been there) – a file was deleted that shouldn’t have been. Here is how to attempt recovery on Ubuntu/Linux. with examples. Backup Your Files First up, keep backups of your files, and keep your backups up to date. The easiest way… Read More »Recover Deleted Files in Ubuntu/Linux, With Examples