Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Linux Command Tutorial: cat command to view the contents of the file     - Detailed usage history command (Linux)

- Depth understanding of C language (Programming)

- Analysis of common mistakes when compiling MySQL installation (Database)

- React Getting Started Tutorial (Linux)

- [SHELL] MySQL primary recovery solution from + Keepalived online (Server)

- Basic data types JavaScript type system and the type of packaging (Programming)

- The Sublime Text 3 configuration file (Linux)

- Terminal fun: 6 interesting Linux command-line tools (Linux)

- YUM install desktop environment in CentOS (Linux)

- Difference between TCP and UDP protocols (Linux)

- Linux System Getting Started Tutorial: How do you know Shell which is currently being used (Linux)

- How to install Eclipse Luna IDE on CentOS 7 / RHEL 7 (Linux)

- To batch create users under Linux (Linux)

- VirtualBox 4.3 Can not open a new task for a virtual computer solution (Linux)

- Git uses a standard process (Linux)

- Timing task Crontab under Linux system (Linux)

- Linux file compression and archiving (Linux)

- Kibana use installation (Linux)

- Linux rights management (Linux)

- Linux command line under HTTP traffic sniffing tool: httpry (Linux)

 
         
  Linux Command Tutorial: cat command to view the contents of the file
     
  Add Date : 2016-08-20      
         
       
         
  Use cat command is to link a file or standard input and print.
This command is used to display the contents of a file or several files connected display, or read from standard input and display, it is often used in conjunction with the redirection symbol.
Linux, view the file contents in many ways:
vi filename # View edit mode, you can modify
cat filename # show all file contents
more filename # page display file contents
tail filename # see only the tail, you can also specify the number of rows
head filename # see only the head, you can also specify the number of rows
sed '1, $' p # filename can specify the starting and ending lines of
cat main functions:
1. The first displays the entire file: cat filename
2. Create a file from the keyboard: cat> filename can only create a new file, you can not edit existing files.
3. several files into one file: cat file1 file2> file
Format:
cat [options] [file] ...
Command parameters:
-A, --show-All equivalent to -vET
-b, --number-nonblank number nonempty output lines
-e equivalent to -vE
-E, --show-Ends display $ at end of each line
-n, --number all line number output by 1 the number of rows to start all output numbers
-s, --squeeze-blank blank row over two consecutive lines, one line will be replaced by a blank line
-t and -vT equivalent
-T, --show-Tabs the tab character is displayed as ^ I
-u (ignored)
-v, --show-nonprinting use ^ and M- references, in addition to outside LFD and TAB
     
         
       
         
  More:      
 
- RealVNC Server 5.2.3 Installation and Configuration In Fedora (Server)
- How to update the ISPConfig 3 SSL Certificates (Server)
- PostgreSQL log classification and management (Database)
- HAproxy let IP recording back-end RS (Server)
- Cacti Linux-based system monitoring and alarm (Linux)
- Linux platform Oracle MySQL connection (Database)
- Linux foundation tutorial: how to modify the host name on CentOS or RHEL 7 (Linux)
- Qt for file splitting and fusion gadgets (Programming)
- iOS GCD multithreading simple to use (Programming)
- Mumble installation source VoIP application on Ubuntu (Linux)
- SecureCRT remote connection Ubuntu fails to solve the case (Linux)
- Oracle DataGuard principles and basic configuration (Database)
- Experts teach you how to identify the actual functional differences between the firewall (Linux)
- Seven kinds of DDoS attack methods and techniques Defensive (Linux)
- How to clear the v $ archived_log view expiration information (Database)
- ssh using scp: / directory: Permission denied (Server)
- How to use secure FTP file transfer (Server)
- Java call by value and by reference (Programming)
- Ubuntu 15.10 under Python + Apache + CGI fully configured (Server)
- Linux find and xargs (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.