find is a Linux/Unix command used to search for files and directories in a specified location based on certain criteria such as name, size, modified time, and ownership, among others. The exec option in find is used to execute a command on the files that are found by the find command. The command can be …
Linux
The userdel command is a Linux utility that can be used to delete user accounts and their associated files. Open the terminal and type userdel username. It performs this function by removing the user’s entry from the /etc/passwd file, and other files associated with the account. In most Linux distributions, the user home and mail …
The Linux operating system offers a plethora of powerful commands, each designed to perform specific tasks efficiently. One such command is ‘useradd,’ which plays a crucial role in managing user accounts on a Linux system. Whether you are a system administrator or an aspiring Linux enthusiast, understanding the ins and outs of the ‘useradd’ command …
Managing user accounts and groups is an essential responsibility for Linux administrators. In this tutorial, we will explore a range of Linux commands that enable us to perform fundamental user management tasks. We’ll cover creating new users, creating groups, deleting users, and deleting groups. By mastering these commands, you’ll gain the skills needed to effectively …
Pstree displays the process parent-child relationship in a hierarchical format on Linux. We can use this command to find the parent or child process easily. The output of this command is quite similar to the output of the ps axjf command and the ps -ef –forest command. But pstree result is much easier to understand. Let us …
Bash is a commonly-used shell in many Linux distributions. Bash is a command interpreter. It is a command-line–only interface containing a handful of built-in commands; it has the ability to launch other programs and to control programs that have been launched from it (job control). We can use bash to interact with the system. Bash …
Ubuntu is a very popular Linux distribution. Many Linux beginners want to learn it but don’t know how to start. Today we will look at how to install Ubuntu system in 2 minutes. After we install it, we can use it to practice our Linux commands. We think it is a good way to start …
Networking management is a common task for Linux admins. Today we will cover some basic networking commands for the Ubuntu Linux interview. These commands are frequently asked during an interview. Hope this post can help you improve your interview performance. 10 Networking Commands For Ubuntu Linux Interview lspci – lists all pci devices. Combine it …
This is a detailed example to learn the difference between hard links and soft links in Linux. Create two files: $ touch foo; touch bar Enter some Data into them: $ echo “Cat” > foo $ echo “Dog” > bar And as expected: $cat foo; cat bar Cat Dog Let’s create hard and soft links: …
Hard links and symbolic links are very confusing for Linux beginners. Today we will look at the differences between these two links. Hard Links In Linux By default, every file has a single hard link that gives the file its name. When we create a hard link, we create an additional directory entry for a …