In this article, we will learn about the file editing commands and commands with the help of that we can manipulate the data of a file or directory.
Let's start...
File Editing Commands:
- emacs command: It is a text editing command. It is designed for POSIX operating system and is also available on Linux, Windows, macOS, and more. This command is very useful and users love to use it because it features efficient commands for common but also can do complex tasks and configuration hacks.
- ex, edit command: Ex stands for "Extended". It is a text editing command in Linux and the line-editing mode of vi. It is known as one of the most text editors in the world.
- pico command: It is available on modern Linux systems as nano. It is a simple, display-oriented text editor. As we type characters on it, it is automatically inserted into the text. Commands and key shortcuts are available at the bottom of the screen.
- pluma command: It is a fork of gedit2. It is known as the default text editor of the MATE desktop environment. It is a graphical application that allows us to edit more than one file in one tab.
- gedit command: It is a GNOME text editor. To start the gedit, enter the gedit command in the terminal and press enter. After entering, the GNOME editor will appear shortly. It's an uncluttered and clean application window.
- vi, vim command: It is known as the most popular text editor in Linux distributions. Or we can say that it has a simple black and white screen. That means, if we type any command in the command line there is no code highlighting but vi has the code highlight and vim is the upgraded version of vi.
Manipulating Data Commands:
With these commands, you can compare and alter the content of a file or directory.
- awk command: This command is used by the programmers to write useful programs in the form of statements defining some specific patterns to be searched in each line of a file or directory. Simply we can say that it is used for pattern processing and scanning.
- Perl command: This command is the interpreter of the Perl Programming Language. This command is used for the processing of text files and analysis of the strings. It is also used for Common Gateway Interface(CGI), Web Development, Graphical User Interface(GUI) Development.
- CMP command: This command is used to compare the file byte by byte and help you to find the identification of two files.
- paste command: It is the most commonly used command in Linux which is used to join the files horizontally by outputting lines consisting of lines from each file specified, separated by tab as a delimiter, to the standard output.
- comm command: This command is used to compare the files line by line and write three columns to standard output. These columns show lines of files that are identical to file one, file two that have been shared. It is also used for suppressing columns output and comparing lines without case sensitivity.
- sed command: It stands for "Stream Editor". It performs a lot of functions on files like searching, renaming, insertion, deletion, and finding. Although the most commonly used SED is for substitution.
- cut command: This command is used to cut sections from each line of a file.
- sort command: This command is used to print the output of a file in a given order. It processes your data and specified it in a manner that everyone can read it efficiently.
- diff command: It stands for "Difference". This command is used to display the differences of files by comparing the files line by line. Unlike other commands, command CMP, diff command also tell us which line of a file should be changed to make the files identical.
- split command: This command is used to split a computer file into smaller ones. Split adds aa to the first output file, proceeding through the alphabet to Z for subsequent files. By using it, you have to give a prefix otherwise it will use x as default.
- expand command: This command is used for copying the files to the standard output but it also copies the tab characters expanded to space characters.
- gawk command: This command is used for pattern scanning and processing language. It requires no compiling and allows users to use numeric functions, variables, string functions, and logical operators.
- tr command: Tr stands for "Translate". These commands read a byte of stream in standard input(stdin), translate, deletes characters, then write the stream into standard output(stdout). Removes special characters in its input data stream.
- uniq command: This command is used to count and print the number of repeated lines. With the use of it, we can filter unique lines and can also ignore case sensitivity.
- join command: This command is used to merge two files together using a common field in each file as the common link. You can also relate it to SQL join commands.
- look command: This command shows the lines starting with the given string. It uses binary search if the file is sorted.
- WC command: Wc stands for "Word Count". This command allows us to count the number of lines, words, bytes, and characters in one or more than one text file.
#Penetration Testing Tutorial for Absolute Beginners
#Technical Tools Explanation
#Linux for Absolute Beginners in Hindi
0 Comments
If you have any doubts, let me know