Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Linux Command Tutorial: cat command to view the contents of the file     - OpenSSL: implementation creates a private CA, certificate signing request Explanation (Server)

- C language Bubble Sort - integer sort (Programming)

- Configuring Android NDK development environment for Mac OS X (Linux)

- MongoDB uses aggregate, group, match mysql achieve in having (count (1)> 1) features (Database)

- Package the Python script file into an executable file (Programming)

- Ubuntu 14.04 Docker installation (Linux)

- MySQL 5.6.12 binary log path switching binlog (Database)

- Killall five options you might not know (Linux)

- Volatile keyword in C language understanding (Programming)

- Struts2 dynamic call DMI and error Solution (Programming)

- Linux Network Programming - raw socket instance: MAC header message analysis (Programming)

- To setup Cocos2dx project under Ubuntu (Linux)

- CentOS 7 Docker build private warehouse registry (Linux)

- CentOS How to mount the hard drive (Linux)

- curl Usage: Being the first site header and status codes (Server)

- Linux System Administrator Network Security Experience (Linux)

- JavaScript common array manipulation functions and usage (Programming)

- Linux kernel RCU (Read Copy Update) lock Brief (Linux)

- Ubuntu 12.04 installation OpenCV2.4.1 and compile test (Linux)

- Android developers learning Adapter (data adapter) (Programming)

 
         
  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:      
 
- To install HDRMerge 0.4.3 under ubuntu (Linux)
- Linux under DB2SQL1024N A database connection does not exist. SQLS (Database)
- Linux character device - automatically creates the device nodes and devices (Linux)
- Summary Linux bond of multi-interface load balancing (Linux)
- How to Install Cantata MPD 1.3.3 for Ubuntu and Derived Version Users (Linux)
- Restore database fault encountered ORA-0600 (Database)
- Oracle restrict certain IP, the malicious user actions on important table (Database)
- See how --nand flash timing diagram of a read operation Comments (Programming)
- CentOS 6.4 install and configure Squid Proxy Server (Linux)
- Git Installation and Configuration (Network Agent settings) (Linux)
- Performance issues under CentOS 6.5 VLAN devices (Linux)
- Online booking shocking information leakage risk, you dare book the tickets online? (Linux)
- Android system source code and compile the kernel source code (Programming)
- RHEL 5.7 Yum configure local source [Errno 2] No such file or directory (Linux)
- Linux Powerful IDE - Geany configuration instructions (Linux)
- Command-line based tools for better alternatives (Linux)
- Oracle 11g maintenance partitions (eight) - Renaming Partitions (Database)
- How to Install Winusb in Ubuntu 14.04 (Linux)
- Linux System Getting Started Tutorial: How do you know Shell which is currently being used (Linux)
- grep command Detailed and relevant examples (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.