Shilpa S has Published 59 Answers

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

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

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

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

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

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

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

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

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

How to move jobs to the background in the Linux system?

Shilpa S

Shilpa S

Updated on 01-Jul-2021 14:50:52

To move foreground jobs in the background, we use the bg command in the Linux system.bg (background) – The bg command is used to move foreground jobs in the background. It resumes execution of a suspended process in the background. If no job is specified, then the bg command work ... Read More

How to move a file, group of files, and directories in Linux?

Shilpa S

Shilpa S

Updated on 01-Jul-2021 14:47:49

The mv (move) command is used to move one or more files or directories from one directory to another directory using terminal in the Linux/Unix operating system. After using the mv command file is copied from source to destination and source file is removed. The mv command is also used ... Read More

Advertisements