学习大数据
Linux查看文本文件
Back to Home
Linux查看文本文件
Created
2023-01-14
|
Updated
2026-03-08
|
Linux
|
Post Views:
查看文本文件
cat
1
查看文件全部内容
head
1
2
head -n 5 文件名
查看文件前5行
tail
1
2
tail -n 3 文件名
查看文件后三行
more
1
2
3
分页查看文件内容
回车:下一行
空格:翻页
Author:
QuZheng
Link:
https://www.studybigdata.com/Linux/Linux_06_%E6%9F%A5%E7%9C%8B%E6%96%87%E6%9C%AC%E6%96%87%E4%BB%B6/
Copyright Notice:
All articles on this blog are licensed under
CC BY-NC-SA 4.0
unless otherwise stated.
Linux查看文本文件
Previous
Linux软件安装 - YUM软件安装
YUMYum(全称为 Yellow dog Updater Modified)是一个在Fedora和RedHat以及CentOS中的Shell前端软件包管理器。基于RPM包管理,能够从指定的服务器自动下载RPM包并且安装,可以自动处理依赖性关系,并且一次安装所有依赖的软件包,无须繁琐地一次次下载、安装。yum提供了查找、安装、删除某一个、一组甚至全部软件包的命令,而且命令简洁而又好记。 yum安装/卸载软件 yum -y install 软件名 #安装,升级软件包,-y表示自动确认,-q表示静默安装 yum -y remove/erase 软件名 #卸载软件包,可自动解决其依赖关系 yum -y update 软件名 #升级软件包 yum查询软件包 yum list #查询软件包列表 yum list installed #查询系统中已安装的软件包 ...
Next
Linux文件权限
文件权限12345678910111213drwxr-xr-x 1 root root 4096 Oct 14 19:35 homed: directory - :文件rwx : 所有者权限(user, u) 111 -> 7r-x : 所属组(group, g) 101 -> 5r-x : 其他用户(other, o) 101 -> 5r : read (4)w : write (2)x : 执行 (1)root : 所有者root : 所属组 123chmod :更改权限chmod 700 filechmod u+x file 1chown zhangsan:zhangsan hello.sh
QuZheng
Articles
133
Tags
99
Categories
27
Follow Me
Announcement
This is my Blog
Contents
1.
查看文本文件
1.1.
cat
1.2.
head
1.3.
tail
1.4.
more
Recent Posts
Kafka基本使用
2026-03-15
Flink Hello World
2026-03-14
Flink Stream Connect
2026-03-14
Flink Stream Union
2026-03-14
Flink Introduction
2026-03-14