Thefindcommand in Linux is a powerful tool used tosearch for filesanddirectorieswithin a specified path based on different criteria. Moreover, it allows users to locatefilesby name, type, size, permissions, and
By default history command will display output as follows: $ history NOTE: When we use history command it won’t display what time the commands were executed from the bash history. To solve this problem create a shell variable called HISTTIMEFORMAT. How to see time stamps in bash history Defi...
This guide showed how to use thelsofcommand to troubleshoot potential security and system problems with practical examples. Next, learnhow to copy files and directories in Linux.
Back to all posts The ls command is a basic, useful, and obvious utility that Linux users have been putting to work for decades. Originally debuted in an AT&T build of UNIX, the ls command we know today is a part of the GNU Coreutils packages of our favorite distributions; unless you...
In Linux, you can create a user account and assign the user to different groups using the useradd command.
As we all knowLinux/Unixconsiderseverything as a file(pipes,sockets,directories,devices,etc). One of the reasons to use thelsofcommand is when a disk cannot be unmounted as it says the files are being used. With the help oflsofcommand, we can easily identify the files which are in use...
Deleting users in Linux command line First,list the users in your Linux systemto get the username of the user you want to delete. Now, to delete the user, all you have to do is to use the userdel command with the username like this: ...
Find a File in Linux by Name or Extension Use find from the command line to locate a specific file by name or extension. The following example searches for *.err files in the /home/username/ directory and all sub-directories: find /home/username/ -name "*.err" Using Common find Comm...
The who command has a few options to get other specific information about logged users. Using who command in Linux Here’s the syntax for who command: who [options] [filename] You have already seen what information the who command shows without any options. Let’s now see what options doe...
As you can see, the system no longer requires a password for authentication for the user “james.” How to Disable User Password in Linux You can stop users from logging in by locking the account’s password. Use thepasswdcommand with the-l(--lock) option added, followed by the username...