Linux scp Command - Transfer Files to / from Linux Machines Need to quickly upload, or download a file from your Linux machine? Good news! You already have the software you need. There's an utility called scp that is preinstalled on Windows, MacOS, and Linux. Prerequisites All that is required is an SSH daemon running on the Linux machine
Linux Linux: tee Command In this blog, we'll learn how to use the tee command. But also answer an interesting question. Why do we need tee to redirect (save) a command's output to a file? When we can do the same thing with the > redirect operator? What does tee
Linux Linux: Get IP Address We just logged into a Linux machine, and all we have is a command prompt like this: How do we find all the IP addresses of this Linux server running in the cloud, virtual machine running on our own computer, or whatever it might be? Linux Command to Display IP
Linux How to Use Symbolic Links (Symlinks) on Linux On Linux, we will sometimes encounter files like these: They are called symbolic links, symlinks, or soft links. What Is a Symbolic Link (Symlink / Soft Link)? A symbolic link is a sort of shortcut. A file that points to another file, or directory. In the screenshot above we can see
Linux Linux: Find File by Name Linux has a powerful command called find. It can find any file (or directory), according to the search parameters we pass to it. In this tutorial we'll explore how we can find files, based on their names. Syntax of the Find Command The syntax of the find command
Linux Linux: Change User Password On Linux, a user account is often simply called a "user". In this tutorial we'll explore how to change: * The password of the current user (the user we're currently logged in as). * The passwords of other users. * The password of the root user (the
Linux Linux chmod Command Made Easy (Complete Guide) The chmod command on Linux is used to manage permissions for files and directories. Let's break down how it works, with simple explanations and examples. It's easier to understand through practice. So we'll jump into a Linux terminal, and see the commands we need
Linux Linux Permissions Explained in Simple Terms Let's make file and directory permissions on Linux easy to understand. How will we do that? By simply looking at: * Why do we need a permission? * What does it do? * And looking at a real example, where we run a command, experiment with that permission, and see its
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