The linuxipcommand is similar toifconfig, but more powerful and is intended to be a replacement for it. With ip you have the advantage of performing several network administration tasks with only one command. ifconfig is one of the deprecated command within net-tools that has not been maintai...
How To Use Ip Command In Linux with Examples The linuxipcommand is similar toifconfig, but more powerful and is intended to be a replacement for it. With ip you have the advantage of performing several network administration tasks with only one command. ifconfig is one of the deprecated com...
The strace command in Linux is a powerful diagnostic, debugging, and instructional tool. It stands for “system trace” and is used to trace system calls and signals. When you use strace with a command, it displays a detailed list of system calls made by the command along with the signals...
In less likely scenarios, you may need to use a different user to run a specific command. This tutorial covers most of the basics for using the sudo command on a Linux operating system. For example, we cover the syntax, options, and a few use-cases. What is the whoami Command on ...
When you execute a command in Linux, it generates a numeric return code. This happens whether you're running the command directly from the shell, from a script, or even from anAnsibleplaybook. You can use those return codes to handle the result of that command properly. ...
Creating Temporary Aliases in Linux What you need to do is type the wordaliasthen use the name you wish to use to execute a command followed by"="sign and quote the command you wish to alias. The syntax is as follows: $ alias shortName="your custom command here" ...
How to Use sudo in Linux Once a user is added to thesudogroup, they can use thesudocommand to perform administrative tasks. Basic sudo Usage To usesudo, simply prepend it to the command you want to run with superuser privileges.
We'll use the protocol name in one command, and then repeat it using the port number: ss -a '( dport = :ssh or sport = :ssh )' ss -a '( dport = :22 or sport = :22 )' As expected, we get the same results. Listing Connections to a Specific IP Address ...
The tree command recursively lists directories and files in Linux. Files are listed in an indented manner under their directories.
Getting detailed information related to files on your storage is tricky if you do not know how to use the ls command. Here we'll discuss everything associated with the ls command on Linux, along with some various flags used with it. The ls Command on Linux The ls command is used to li...