A Linux command a day (15): tail command
The tail command writes a file to standard output from the specified point.
The tail command writes a file to standard output from the specified point.
head and tail are as easy to understand as its name, it is used to display the beginning or end of a certain amount of text blocks, head is used to display the beginning of the file to the standard output, and tail is of course to see the end of the file.
The less tool is also a tool for paging files or other output, and is supposed to be the orthodox linux tool for viewing the contents of files, which is extremely powerful.
The nl command is used on linux systems to calculate line numbers in files.
The purpose of the cat command is to concatenate files or standard input and print them.
The touch command in linux is not commonly used, but may be used when using make to modify the file timestamp, or to create a new file that does not exist.
The cp command is used to copy files or directories and is one of the most commonly used commands on Linux systems.
mv command is the abbreviation of move, which can be used to move files or rename files (move (rename) files), and is a common command under Linux system, often used to backup files or directories.
Today we will learn about the command in linux: rmdir command.
We’ve learned the command mkdir to create files and directories, and today we’ll learn the command rm to delete files and directories in linux.