Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Linux Command Tutorial: cat command to view the contents of the file     - The minimum initial use of the Linux operating system RancherOS feelings (Linux)

- How to set IonCube Loaders in Ubuntu (Linux)

- Via Twitter how open source library to be used anywhere Emoji emoticons (Linux)

- iOS Sensor Development - add to APP phone password, fingerprint security authentication (Programming)

- Hadoop - Task Scheduling System Comparison (Server)

- Binary search and modification (Programming)

- It is time to upgrade your gulp 4.0 (Programming)

- DRBD rapid installation and deployment (Server)

- To install GCC development environment under SUSE11 (Linux)

- How UTorrent download the ISO image from the command line (Linux)

- Python regular expressions: how to use regular expressions (Programming)

- CoreOS quick installation to get started on a PC (Linux)

- Configuring a Linux operating system security management services Explain (Linux)

- Thinking in Java study notes - everything is an object (Programming)

- 8 Docker knowledge you may not know (Server)

- Implement firewall function on a closed Linux machine (Linux)

- Linux partition command (Linux)

- Understanding and Memcached MongoDB arbitration node, Zookeeper, Redis Recovery Programme Thoughts (Database)

- How to Install Sticky Notes on Ubuntu and Derivatives (Linux)

- Linux Network Security: nmap port scanning software (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
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
- Linux Beginner Guide: Installing packages on Ubuntu and Fedora (Linux)
- Kubernetes (k8s) environment to build combat (Server)
- Linux System Getting Started Learning: Linux in the last command (Linux)
- Linux (RHEL6 CENTOS6 OLE6) VNC-SERVER Installation and Configuration (Server)
- Empty password Linux operating system (Linux)
- Java implementation chain store binary search tree (recursive method) (Programming)
- Linux dd command make U disk boot disk (Linux)
- Github Remote Assistance (Linux)
- Java 8 stream parsed into SQL (Programming)
- Zombie process under Linux (Linux)
- Linux file permissions chmod chown (Linux)
- Use Hexo quickly build and deploy a blog to Github (Server)
- Red Hat Enterprise Linux 6.4 Configuring VNC Remote Desktop login access (Linux)
- Monitoring services are running properly and will email alert (Server)
- Bash added to the Vi mode indicator (Linux)
- How to adjust the system time CentOS (Linux)
- How to create a someone project on github (Linux)
- How to configure security management services under Linux (Linux)
- When a software RAID data recovery and reconstruction of how failure (Linux)
- Docker Private Registry Installation Guide at CentOS6.X (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.