Command mv (short of move) is used both to move files and folders from one place to the other, and also to rename them. Linux does not distinguish between these two types of operations (move and rename), as users do. The syntax of the mv command is as follows: mv [option] destination source The mv command accepts almost the same options as the cp command. However, mv can not be used with...
Managing files in Linux: ls command
The ls command (list) displays the file names in a directory. The syntax of the ls command is simple: ls [options] [files] Both the command options and the list of files are optional. If we omit to write the list of files, the ls command will display the contents of the current directory (we will use the pwd command first to display the directory we are in). $ pwd $ ls If we want to display the...
Groupdel command – delete groups in Linux
The easiest way to delete a group in Linux is using the groupdel command. The basic syntax is: groupdel group_name For example, the groupdel projects command deletes the project group. A group can also be deleted by editing the /etc/group or /etc/gshadow files if the latter is present by removing the line corresponding to that group. It is recommended to use the groupdel command because it checks...
Changing user accounts in Linux – usermod command
The usermod command works somewhat like useradd command, with similar parameters. The usermod utility changes an existing account, unlike the useradd that adds a new account. The basic syntax of the command is: usermod [-c comment] [-d home_dir [-m]] [-e expire_date] [-f inactive_time] [-g initial_group] [-G group [,…]] [-l login_name] [-p passwd] [-s shell] ↵ [-u uid [-o]] [-L|-U] username...
Rclone – synchronization with cloud storage services
Rclone is an open source tool that can sync Linux systems with the most important cloud storage services: Google Drive, Amazon Drive, S3, Dropbox, Backblaze B2, One Drive, Box, Hubic, Cloudfiles, Google Cloud Storage, Yandex and more others. Its appearance was determined by the need of synchronizing a local directory with the space in the cloud owned by users, a space that most often has mounting...
The gentent command – Individual view of information in Linux
When you manage a system with many user accounts, groups, and, by default, passwords, it is necessary that individual information for a particular account can be viewed quickly. It may be tedious to try to locate information about a particular user in a file with hundreds or thousands of records. In most cases, the grep command is used to search for specific records in a file: $ grep mvps...
WPScan – a WordPress vulnerability scanner
WPScan is a free, non-commercial tool useful for scanning the vulnerabilities of WordPress-based websites. It was designed to test the security of these websites. In addition to security testing, WPScan is also useful in finding the theme or plugins used by a particular WordPress website – I am sure that not only once you were curious to find out which template or extension uses a particular...
Changing User Accounts in Linux – Chage Command
The chage (change age) command allows you to modify user accounts for their expiration. Linux allows you to configure your accounts so they expire automatically if either of the following conditions is met: 1. the password was not changed within the specified time period; 2. if the system date exceeds a predetermined date. These settings are controlled by the chage utility, which has the...
Gpasswd command – modifying some group features in Linux
The gpasswd command is the equivalent of the passwd command for groups. This command provides the ability to modify some group features and assign administrators to users who can perform administrative functions relative to their group. The syntax of the command is the following one: gpasswd [-a user] [-d user] [-R] [-r] [-A user [, …]] [-M user[,…]] group Adding a user The -a user...
GroupAdd and GroupMod commands
Groupadd command – adding groups to Linux The groupadd command provides the ability to add a new group to Linux. It is similar to useradd, but has fewer options. The basic syntax of the groupadd command is: groupadd [-g GID [-o]] [-r] [-f] [-K] group_name The parameters used by this command have the following meanings: GID specification We can specify a specific GroupIDentifier (GID) using...