Linux commands: gzip - A Quick Guide to File Compression

In this quick guide, we will explore the gzip command, which is used to compress files using the LZ77 compression protocol. Compressing files can help reduce their size and save storage space. Let’s dive into the various options and features of gzip. Compressing a File The simplest way to compress a file is by using the following command: gzip filename This command will compress the specified file and append the ....

Linux commands: jobs - A Quick Guide

In the Linux command line, we often need to run programs in the background. The jobs command is a useful tool to list the status of the jobs that we have started. When we run a command in Linux or macOS, we can append the & symbol after the command to execute it in the background. This is particularly helpful for long-running programs. For example, to run the top command in the background, we can use the following command:...

Linux commands: kill - A Quick Guide to Sending Signals to Processes

In the world of Linux, processes can receive signals and react to them. This is one way we can interact with running programs. The kill command is a powerful tool that allows us to send a variety of signals to a running process. While the name “kill” might suggest that its main purpose is to terminate a program, it can actually do much more. Let’s take a closer look at how to use the kill command....

Linux Commands: ln - Creating Links in the Filesystem

In this blog post, we will explore the ln command, a powerful tool used for creating links in the Linux file system. A link is like a pointer to another file, similar to Windows shortcuts. There are two types of links: hard links and soft links. Hard Links Hard links are rarely used due to their limitations. They cannot be created for directories or external filesystems. To create a hard link, use the following syntax:...

Linux commands: mkdir

In this article, we will explore the mkdir command in Linux, which is used to create folders. We will also learn about some of the options available with this command. To create a folder, simply use the following syntax: mkdir folder_name For example, to create a folder named “fruits”, you can run the command: mkdir fruits You can create multiple folders in a single command by specifying their names separated by spaces....

Linux Commands: mv - A Quick Guide to Moving Files and Folders

The mv command is a powerful tool in Linux, macOS, WSL, and any UNIX environment that allows you to move and rename files and folders. In this blog post, we will explore the various ways you can use the mv command to manage your files efficiently. Moving a File or Renaming it To move a file from one location to another or rename it, use the following syntax: mv <current_path> <new_path> For example, let’s say you have a file called “pear” in your current directory, and you want to move it to a new location called “new_pear....

Linux commands: open

A comprehensive guide to using the open command in Linux for opening files, directories, and applications. The open command in Linux allows you to easily open various types of resources. Let’s take a look at how it can be used: Opening Files To open a file, you can use the following syntax: open <filename> For example, to open a file named “example.txt”, you would run: open example.txt Opening Directories The open command can also be used to open directories....

Linux Commands: passwd - A Quick Guide to Changing User Passwords

In the Linux operating system, users are assigned passwords to ensure security. To change a user’s password, the passwd command is used. In this guide, we will explore how to use the passwd command effectively. Changing Your Password If you want to change your own password, follow these steps: Open the terminal. Type the following command: passwd Press Enter. You will be prompted to enter your old password. Type it and press Enter....

Linux commands: ps

A comprehensive guide to using the ps command in Linux to list and manage running processes. At any given time, your computer is running numerous processes. To inspect and manage these processes, the ps command comes in handy. It provides a list of the processes currently running in the system. The displayed list represents the user-initiated processes in the current session. For example, you may see multiple instances of the fish shell, mainly opened by VS Code within the editor, and an instance of Hugo running the development preview of a site....

Linux commands: pwd

A comprehensive guide to using the pwd command to check the current working directory. When navigating through the filesystem and feeling unsure of your current location, the pwd command comes in handy. By executing the command pwd, you can obtain the path of the directory you are currently in. To execute the command, simply type pwd in the terminal. The output will display the complete path of the current folder....