Shilpa S has Published 58 Articles

How to change the file owner and group in Linux?

Shilpa S

Shilpa S

Updated on 13-Sep-2023 14:22:17

27K+ Views

To change the file owner and group, we use the chown command in the Linux operating system.We know that Linux is a multiuser operating system so every file or directory belongs to an owner and group.To change ownership of files or directories we use chown command in the Linux system. ... Read More

How to display the current working directory in the Linux system?

Shilpa S

Shilpa S

Updated on 06-Sep-2023 13:20:03

33K+ Views

To print the current working directory, we use the pwd command in the Linux system.pwd (print working directory) – The pwd command is used to display the name of the current working directory in the Linux system using the terminal. This is a shell building command that is available in ... Read More

How to wrap each input line to fit in specified width in Linux?

Shilpa S

Shilpa S

Updated on 01-Jul-2021 15:46:27

515 Views

To wraps a line in an input file to fit the specified width, we use the fold command in the Linux operating system.The fold command is used to making a file with long lines more readable on a limited width output by performing a line wrap in the Linux system. ... Read More

How to split or break large files into pieces in Linux?

Shilpa S

Shilpa S

Updated on 01-Jul-2021 15:43:19

11K+ Views

To split large files into small pieces, we use the split command in the Linux operating system.The split command is used to split or break large files into small pieces in the Linux system. By default, it generates output files of a fixed size, the default lines are 1000 and ... Read More

How to sort lines of text files in Linux?

Shilpa S

Shilpa S

Updated on 01-Jul-2021 15:41:01

13K+ Views

To sort lines of text files, we use the sort command in the Linux system.The sort command is used to prints the lines of its input or concatenation of all files listed in its argument list in sorted order. The operation of sorting is done based on one or more ... Read More

How to shrink or extend the size of a file in Linux?

Shilpa S

Shilpa S

Updated on 01-Jul-2021 15:37:26

15K+ Views

The truncate command is used to shrink or extend the size of a file to the given size. The truncate command cannot remove the file whereas removes the contents of the file and set size of file is zero byte. The meaning of truncate is reducing. While reducing the size ... Read More

How to removes duplicate lines from a sorted file in Linux?

Shilpa S

Shilpa S

Updated on 01-Jul-2021 15:34:36

7K+ Views

To remove duplicate lines from a sorted file and make it unique, we use the uniq command in the Linux system. The uniq command work as a kind of filter program that reports out the duplicate lines in a file. It filters adjacent matching lines from the input and gives ... Read More

How to remove sections from each line of files in the Linux system?

Shilpa S

Shilpa S

Updated on 01-Jul-2021 15:32:04

2K+ Views

In this article, we will learn to remove sections from each line of files in the Linux/Unix operating system.To remove selected parts of lines from each FILE, we use the cut command in the Linux system.The cut command is used to remove and print the selected section of each FILE ... Read More

How to remove files and directories in the Linux operating system using the terminal?

Shilpa S

Shilpa S

Updated on 01-Jul-2021 15:29:51

542 Views

The rm command is used to remove files and directories in the Linux operating system whereas the rmdir command is used to remove only empty directories.rm (remove) – rm stands for remove. It is used for files, directories, and symbolic links from the Linux system. By default, it does not remove ... Read More

How to overwrite a file to hide file contents, and make original contents unrecoverable in Linux?

Shilpa S

Shilpa S

Updated on 01-Jul-2021 15:18:12

4K+ Views

To overwrite and file contents in the Linux system, we use the shred command using the terminal.shred – The shred command is used to securely delete files and devices. This command overwrites a file to hide file contents, and optionally delete the file so that it is very difficult to ... Read More

Advertisements