How To Use Sed To Replace String In File?

The sed command is an important command used to edit files or command outputs. The sed can be used to find and replace strings for a file easily via the command line interface. The sed name comes from the Stream Editor which provides advanced features to work with file contents. In this tutorial, we examine … Read more

How To Find Large Files In Linux?

Linux is a file-based operating system that contains a lot of files of different sizes. During daily usage, a lot of files are created or downloaded by systems or users. This consumes a lot of disk space which results in storage errors and warnings. We can search and find big or large files using different … Read more

How To Change Linux File and Directory Permissions?

How To Change Linux File and Directory Permissions?

Linux is a secure operating system that uses file and directory permissions to allow and deny different access types. In general, a file or directory has 3 operations named read , write and execute . These operations permissions can be set according to the different users or user groups. The chmod command is used to … Read more

Where Is cron or crontab Log?

Where Is cron or crontab Log?

The cron or crontab are a command and service used to run scheduled commands and scripts in Linux operating systems. The cron is used to set scheduled commands and execute them at specified times or intervals. This operation is error prone where we may need to check if the specified cron job is executed properly. … Read more

Linux mount Command Tutorial

Linux mount Command Tutorial

Linux and Unix operating systems provide the mount command in order to attach file systems, disks, partitions, USB drive, cdrom, and even network shares into the local system. As a dynamic operation, we may also use the umount command in order to detach mounted devices. List Mounted Devices/File Systems Before mounting some devices or file … Read more

Linux egrep Command Tutorial

Linux egrep Command Tutorial

The egrep command is an extended version of the grep command. The egrep name comes from the Extended Global Regular Expression Print . The egrep command simply searches single or multiple specified files for a specific pattern which can be also a Regular Expression. The egrep command is the grep -E implementation where the -E … Read more

Change User To Root In Linux

Change User To Root In Linux

Linux provides different privileges for different account types. The user is a regular user who has normal user privileges. The root is a specific user account which is the administrator or super admin of the Linux system. A regular user can not accomplish all tasks as it has limited privileges and permissions. In order to … Read more

How To Change User Group In Linux?

How To Change User Group In Linux?

Linux users are assigned to different groups to get different permissions. A single user may have single or multiple groups. In this tutorial, we examine how to change user groups in Linux operating system. Linux Group Types There are two types of Linux Groups. First is the primary group which is generally the same as … Read more