Linux Linux: Add User to Group On Linux, a user account can be part of one, or more groups. And group membership can give that user certain extra abilities, like: * The ability to read certain files, or directories. * The ability to run sudo commands. * The ability to run docker commands (without needing to run Docker as
Linux Linux Shutdown Command How do we shutdown a Linux server from the command line? With the shutdown command. This will work for real physical servers, but also virtual machines running in the cloud. To shutdown a Linux machine immediately we can run: sudo shutdown now When to Avoid Immediate Shutdown, and Schedule Instead
Linux How to Get the Size of a Directory on Linux To get the size of a directory, on Linux, we can run this command: du -sh /path/to/directory/ du is short for "disk usage". Here's an example. To see the size of the /usr/bin/ directory we would run this command: du -sh /usr/bin/
Linux How to Rename a File on Linux The command to rename a file on Linux-based operating systems is: mv old_name new_name That's if the file is located in our current directory. Not in the current directory? Then we first have to "move" there with the cd command. Here's a
Linux How to Check Linux Version (for the Operating System, and the Kernel) Sometimes we'll need to log in to remote Linux machines. And with just a command line to look at… It can be hard to know exactly what Linux distribution is running here. How is the operating system called? Ubuntu, Debian, or Red Hat? And if it's
Linux How to Check Disk Space on Linux 💡We still call it "disk space", a remnant of the era when almost everything was stored on hard disks. Nowadays, since data can be stored on SSDs, or other devices, a more generic term like "storage space" is used. But to keep in line with what
Linux How to Remove a Directory in Linux The command to remove a directory (folder) on Linux is: rm -r /path/to/directory/ It will delete it no matter if the directory is empty, or not empty. -r is the option that tells the rm (remove) command to do this recursively. That is, remove the directory itself, along
Linux How to Terminate, or Kill a Process in Linux (Complete Guide) As long-term computer users, we've certainly had to use something like Windows' Task Manager, at least a few times. An application becomes unresponsive, or slow, or simply misbehaves. And clicking on that "X" button just doesn't work. So we fire up Task Manager,
Linux How to List All Users in Linux Operating systems based on the Linux kernel support multiple user accounts. Instead of "user accounts" they're often just called "users". So let's see how to list all of these users / accounts. First, we'll explore the commands. And at the end
Linux How to Rename a Directory in Linux What Windows calls folders, Linux-based operating systems call directories. Linux Command to Rename a Directory (Quick Examples) If you want the quick answers, here they are. Using relative paths, to rename a directory called Backups to Backups_2024, we'd run a command like this: mv Backups Backups_2024
Learn Linux How to Unzip Files to a Specific Directory in Linux In this blog, you will learn various methods for unzipping files to a specific directory in Linux.
Learn Linux How to List All Groups in Linux Linux provides its users with a robust and flexible environment. As they explore this vast landscape, understanding user groups becomes essential. Groups play a critical role in managing permissions, facilitating collaboration, and maintaining a secure and organized system. In this blog, we will explore the available methods and commands to