Linux的cat命令详解
来源:互联网 发布:汽车零部件进出口数据 编辑:程序博客网 时间:2024/06/15 00:56
The cat command reads one or more files and copies them to standard output
也就是说,cat命令读取文件,并显示在 standard output 中。正常情况下,也就是显示在屏幕上。
cat 的另一个功能是 concatenate, 连接。如下面这条命令:
cat movie.mpeg.0* > movie.mpeg
将多个子mpeg文件合成为 movie.mpeg 文件。
如果输入 cat 不带参数:
cat
将从 standard input (如键盘)中读入,直到按 Ctrl+d 来为作 EOF。读入的信息同样将显示在standard output 上。
如果用以下命令:
cat filename.txt
从 standard input 读入的信息将被保存在 filename.txt 中。
使用如下命令:
cat < filename.txt
则 shell 将从 filename.txt 中读取信息,并显示在 standard output 上。
参考文献
Shotts Jr, W. E. (2012). The linux command line: A complete introduction. No Starch Press.
阅读全文
0 0
- Linux的cat命令详解
- linux cat 命令详解
- linux cat 命令详解
- linux cat 命令详解
- linux cat 命令详解
- linux cat 命令详解
- linux cat 命令详解
- Linux cat命令详解
- linux cat 命令详解
- linux cat 命令详解
- Linux cat 命令详解
- linux cat 命令详解
- linux cat 命令详解
- linux cat命令详解
- linux cat 命令详解
- Linux cat命令详解
- linux 命令 cat 详解
- Linux cat命令详解
- UESTC 1641 此情无计可消除,才下眉头,却上心头。 最小生成树、Kruskal
- 学习Javascript闭包(Closure)
- C语言应用范围
- 系统和进程相关信息
- Balanced Lineup
- Linux的cat命令详解
- POJ 3041 Asteroids 匈牙利算法
- IE和DOM事件流的区别
- [Leetcode] 158. Read N Characters Given Read4 II
- C++数组指针
- android 通知栏的Intent事件
- 用友U8获取指定用户在某个账套中是否拥有指定权限
- java做网站
- LeetCode 561. Array Partition I