les命令linux linux命令lsl

RHEL与SLES中的Linux启动选项有哪些重大变化当Linux服务器启动时,计算机首先读取GRUB2配置去寻找哪个磁盘里包含根文件系统,以及在哪里找到内核与initramfs文件包 。如果某些配置错误,系统管理员就必须对其进行设置以使服务器正常启动 。
采取以下步骤实现,当GRUB2运行到可以看见启动选项时,单击Esc键 。选择你想要设置的选项,按e键进入编辑模式 。这将在/etc/default/grub and /etc/grub.d 中的GRUB2配置文件离显示所有选项 。
在Linux启动选项菜单中选择你要编辑的行,通常这个是关乎内核的 。一些最重要的启动选项在RHEL 7以及SUSE LES 。Systemd.units或者systemd服务集合需要重启 , 代替急救模式和应急模式 。
Systemd.unit为Linux启动选项提供许多服务,关于systemd.unit 服务这里有几个关键点需要提醒所有的Linux管理员们:
● rescue.target:急救模式,为整个运营系统下载提供所需的服务,但不包括网络服务或者其他非必要的服务 。急救模式可与来自初始化启动过程的运行级1相提并论 。
● emergency.target:最低级模式,不加载任何东西 。你只需要一个启动文件系统,几乎没有服务 。这种目标能与在启动一个初始化服务器时通过init=/bin/bash模式相比 。
● multi-user.target:替代运行级 。它是默认下服务器启动的基本模式 。
● graphical.target:运行级5的新版本,可以启动所有的服务以及图形界面 。
● poweroff.target:旧有运行级0 , 用于关闭服务器 。
● reboot.target:旧运行级6,用于重新启动服务器 。
为了在启动中具体指定目标,将以上的模式放到GRUB2负载内核的程序行中 。如此,你要么需要指定语句systemd.unit=emergency.target,或者将选定的模式名加到负载内核的程序行末尾处 。
键入目标启动模式时,使用systemctl命令,语句为systemctl isolate reboot.target. 。分布式供应商还会采用一些以前的命令操作以简化这个过程 。所有如果你还没有习惯新的工作方式,使用telinit6命令可能会奏效 。
当你完成提交了GRUB菜单的配置修改之后,按Ctrl x进入启动 。这时就进入了一个特定的模式下,例如应急模式,输入systemctl命令去查看哪一个systemd服务已经被启动了 。这将提供所有加载服务的概览图 。在应急模式中,至少应该出现如下项
故障修复之后,使用systemctl命令后面加上你想进入的目标模式的名称,该步骤用于重启正常服务器状态,例如输入systemctl isolate multi-user.target启动运行级3 。
修改GRUB2默认设置
如果你进入了GRUB2启动菜单修改默认的GRUB2启动项,你也许将设置永久的默认启动模式配置 。输入grub2-mkconfig -o /boot/grub2/grub.cfg,这个命令将你习惯使用的启动服务器默认GRUB2配置文件/boot/grub2/grub.cfg进行了改写 。这个操作只有在GRUB配置包含真正的错误时才会生效 。
改变GRUB配置改变了GRUB2的默认行为 。/etc/default/grub文件夹包含了许多你不得不进行修改的GRUB2 设置 。GRUB_CMDLINE_LINUX命令行包含了默认服务器内核启动的所有项 。修改该命令行就可以永久的修改默认设置 。
除了/etc/grub/default 文件以外,/etc/grub.d目录下也包含了很少的需要修改的选项 。
在提交了GRUB2配置文件的所有修改之后 , 使用grub2-mkconfig -o /boot/grub2/grub.cfg命令把它们写入你的系统 。
如何在linux环境下编辑一个c语言源程序并将其编译为可执行文件?打开安装好的Linux系统(ubuntu18.04)
1.安装编辑器
使用语句:sudo apt-get install vim安装vim,可以在安装前查看是否安装vim编辑器 。(特别提示:在安装vim前最好将软件更新,使用指令sudo apt-get update.)之所以要加sudo的原因是这些安装和更新软件的时候需要使用管理员权限才可以进行 。
2.安装gcc编译器
和安装vim类似使用sudo apt-get install gcc,安装完成后可以使用cc-v来查看编译器版本信息等 。cc -v界面如下:
3.创建文件夹并进入该文件
创建文件夹前可以使用 指令ls 来查看该系统中有哪些文件 。然后使用mkdir 文件夹名创建文件,并且查看该文件夹是否被创建 。(假如创建了一个名字为workspace的文件mkdir workspace)进入该文件则使用命令 cd workspace.然后就进入该目录 。然后再创建一个文件名为les1 的文件(mkdir les1) 。进入les1文件(cd les1) 。创建一个.c文件:touch a.c 。
4.编辑该文件
输入vi a.c 进入该界面
会发现用户不能从键盘输入信息,这时我们需要从键盘按一个i在下面会显示INSERT(表示插入) 。
然后就可以使用键盘输入代码 。输入完成以后可以按Esc退出插入操作 。再同时按shift和冒号,从键盘输入wq(表示保存并退出) 。
5.编译该文件
输入指令:cc a.c(cc 是gcc 的缩写)
若没有报错则从键盘输入ls查看是否生成了可以执行的文件a.out文件 。
会发现生成a.out文件
6.执行该文件
使用指令 ./a.out 执行该程序 。输出hello world !
linux,unix常用基本命令1.常用指令
ls显示文件或目录
-l列出文件详细信息l(list)
-a列出当前目录下所有文件及目录 , 包括隐藏的a(all)
mkdir创建目录
-p创建目录 , 若无父目录 , 则创建p(parent)
cd切换目录
touch创建空文件
echo创建带有内容的文件 。
cat查看文件内容
cp拷贝
mv移动或重命名
rm删除文件
-r递归删除,可删除子目录及文件
-f强制删除
find在文件系统中搜索某文件
wc统计文本中行数、字数、字符数
grep在文本文件中查找某个字符串
rmdir删除空目录
tree树形结构显示目录,需要安装tree包
pwd显示当前目录
ln创建链接文件
more、less分页显示文本文件内容
head、tail显示文件头、尾内容
ctrl alt F1命令行全屏模式
2.系统管理命令
stat显示指定文件的详细信息,比ls更详细
who显示在线登陆用户
whoami显示当前操作用户
hostname显示主机名
uname显示系统信息
top动态显示当前耗费资源最多进程信息
ps显示瞬间进程状态 ps -aux
du查看目录大小 du -h /home带有单位显示目录信息
df查看磁盘大小 df -h 带有单位显示磁盘信息
ifconfig查看网络情况
ping测试网络连通
netstat显示网络状态信息
man命令不会用了,找男人如:man ls
clear清屏
alias对命令重命名 如:alias showmeit="ps -aux" ,另外解除使用unaliax showmeit
kill杀死进程 , 可以先用ps 或 top命令查看进程的id,然后再用kill命令杀死进程 。
3.打包压缩相关命令
tar:打包压缩
-c归档文件
-x压缩文件
-zgzip压缩文件
-jbzip2压缩文件
-v显示压缩或解压缩过程 v(view)
-f使用档名
例:
tar -cvf /home/abc.tar /home/abc只打包,不压缩
tar -zcvf /home/abc.tar.gz /home/abc打包,并用gzip压缩
tar -jcvf /home/abc.tar.bz2 /home/abc打包,并用bzip2压缩
当然,如果想解压缩 , 就直接替换上面的命令tar -cvf/ tar -zcvf/ tar -jcvf 中的“c” 换成“x” 就可以了 。
3.关机/重启机器
shutdown
-r关机重启
-h关机不重启
now立刻关机
halt关机
reboot重启
4.Linux管道
将一个命令的标准输出作为另一个命令的标准输入 。也就是把几个命令组合起来使用,后一个命令除以前一个命令的结果 。
例:grep -r "close" /home/* | more在home目录下所有文件中查找,包括close的文件 , 并分页输出 。
5.Linux软件包管理
dpkg (Debian Package)管理工具,软件包名以.deb后缀 。这种方法适合系统不能联网的情况下 。
比如安装tree命令的安装包,先将tree.deb传到Linux系统中 。再使用如下命令安装 。
sudo dpkg -i tree_1.5.3-1_i386.deb安装软件
sudo dpkg -r tree卸载软件
注:将tree.deb传到Linux系统中,有多种方式 。VMwareTool , 使用挂载方式;使用winSCP工具等;
APT(Advanced Packaging Tool)高级软件工具 。这种方法适合系统能够连接互联网的情况 。
依然以tree为例
sudo apt-get install tree安装tree
sudo apt-get remove tree卸载tree
sudo apt-get update更新软件
sudo apt-get upgrade
6.将.rpm文件转为.deb文件
.rpm为RedHat使用的软件格式 。在Ubuntu下不能直接使用,所以需要转换一下 。
sudo alien abc.rpm
7.vim使用
vim三种模式:命令模式、插入模式、编辑模式 。使用ESC或i或:来切换模式 。
命令模式下:
:q退出
:q!强制退出
:wq保存并退出
:set number显示行号
:set nonumber隐藏行号
/apache在文档中查找apache 按n跳到下一个,shift n上一个
yyp复制光标所在行,并粘贴
h(左移一个字符←)、j(下一行↓)、k(上一行↑)、l(右移一个字符→)
8.用户及用户组管理
/etc/passwd存储用户账号
/etc/group存储组账号
/etc/shadow存储用户账号的密码
/etc/gshadow存储用户组账号的密码
useradd 用户名
userdel 用户名
adduser 用户名
groupadd 组名
groupdel 组名
passwd root给root设置密码
/etc/profile系统环境变量
bash_profile用户环境变量
.bashrc用户环境变量
su user切换用户,加载配置文件.bashrc
su - user切换用户,加载配置文件/etc/profile,加载bash_profile
更改文件的用户及用户组
sudo chown [-R] owner[:group] {File|Directory}
例如:还以jdk-7u21-linux-i586.tar.gz为例 。属于用户hadoop,组hadoop
要想切换此文件所属的用户及组 。可以使用命令 。
sudo chown root:root jdk-7u21-linux-i586.tar.gz
扩展资料
Linux是一套免费使用和自由传播的类Unix操作系统,是一个基于POSIX和UNIX的多用户、多任务、支持多线程和多CPU的操作系统 。它能运行主要的UNIX工具软件、应用程序和网络协议 。它支持32位和64位硬件 。Linux继承了Unix以网络为核心的设计思想 , 是一个性能稳定的多用户网络操作系统 。
UNIX操作系统(尤尼斯),是一个强大的多用户、多任务操作系统,支持多种处理器架构,按照操作系统的分类,属于分时操作系统 , 最早由KenThompson、Dennis Ritchie和Douglas McIlroy于1969年在ATT的贝尔实验室开发 。目前它的商标权由国际开放标准组织所拥有,只有符合单一UNIX规范的UNIX系统才能使用UNIX这个名称,否则只能称为类UNIX(UNIX-like) 。
懂linux的进如何为组建立SAMBA服务器一. 由Linux向windows提供文件/目录及打印机共享 。
在Linux服务器上的Samba运行起来以后 , Linux就相当于一台文件及打印服务器,向win
dows
和Linux
Samba客户提供文件及打印服务 。工作在共享模式或者用户模式下的两种方法较为常见(
Secu
rity=share
or Security=user) ,其中有以下常见问题 。环境: Redhat Linux 6.x
1.共享模式时从windows 98客户端不能从网上邻居中看到服务器,或者看到后不能点击
进入
共享资源
说密码不对等等 。
a. 没有去掉行guest account = pcguest前面的注释符号
b. 没有创建guest帐号pcguest (#useradd pcguest即可)
c. windows 98默认发送加密的口令,而/etc/smb.conf中没有enable Samba加密口令 。
或者也可以编辑windows 98注册表 , 让它发送文本口令(不被建议的)
2. 在/etc/smb.conf中定义了完全可写共享目录,但实际操作时不能写入 。
a. 特别要注意的是:LINUX本身的文件及目录权限永远大于SAMBA定义的权限,要让某共
享资
【les命令linux linux命令lsl】源目录
可以被写,首先要保证在LINUX下面该目录可以被相应的用户可写,这是前提 。
3.在共享模式下如何对某共享目录加用户名及密码保护?
a. 看下面的共享资源定义例子:
security = SHARE
username map = /etc/smbusers
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY
client code page = 936
os level = 40
local master = yes
preferred master = yes
domain master = yes
guest account = pcguest
encrypt passwords = yes
smb passwd file = /etc/smbpasswd
[sales]
comment = test folder
path = /sales/training
guest ok = no
writable = yes
valid users = @sales
write list = @sales
在上面的例子中,我们定义了security=share and samba encrypt password,共享目录
名sa
les
不是guest用户可访问的,需要属于sales组里的用户可访问同时也可写 , 当然在Linux下
面要
保证
/sales/training目录可被组sales可写,这样以后
定义你的windows logon(不是NT域登录)的用户名为组sales里的用户名,然后在网上
邻居
中双击
sales时会提示你密码 , 该密码是你在Samba服务器上定义的samba加密的口令,在上面的
例子

用户名和密码对存放在文件/etc/smbpasswd中,当然你事先要有系统用户名在/etc/pas
swd中

4. windows用户经常不能在网上邻居中浏览到Samba服务器的名字 。
a. windows的网上邻居服务是非常不可靠的服务 , 它所建立的浏览列表不可靠 , 由众多
因素
引起 。
b. 一种可靠的解决办法是直接用‘查找’-‘计算机’-打入samba服务器的主机名进行
查找

注意要确保你在windows启动时没有取消登录 。
c.你也可以在DOS窗口用net use 命令:如c: net use m: \sambaservernamesharereso
urce
name
5.服务器端的测试配置工具
a. 在配置完/etc/smb.conf后运行testparm检测配置文件中是否有相应语法错误
b. 在Samba服务起来后,用smbstatus报告用户使用和登录情况 。
c. 在更改过配置文件后,运行/etc/rc.d/init.d/smb restart重读配置文件
二.在Linux客户机上使用Linux Samba服务器
1. 在Linux客户机上使用Smbclient
a. 列出计算机192.168.100.1上所有可用的共享资源:
smbclient -L 192.168.100.1
如果询问口令 , 则直接回车 。
也可用名字如:
smbclient -L sh3
若不知道sh3的IP地址,也可用
smbclient -L sh3 -I 192.168.100.1
b. 以某用户身份连接到Samba服务器192.168.100.1上的共享资源sales
smbclient //192.168.100.1/sales -U jephe
提示口令后输入口令,也可把口令打在命令行上用%号分隔
为: smbclient //192.168.100.1/sales -U jephe%password
提示符为smb:,就象是FTP一样
也可用名字如:
smbclient //sh3/sales -I 192.168.100.1 -U jephe
你也可以用\符号,你的SHELL可能会过滤到特殊符号,则要这样写
#smbclient \\sh3\sales
2. 通过IP地址查找netbios名字
a.在windows下用
c:nbtstat -A 192.168.100.1
如果知道netbios名字,可用下面的命令得知提供某机器哪些服务
c:nbtstat -a hydra
b.在Linux下用
#nmblookup -A 192.168.100.1
在一个网段内可用下面的命令检测哪些主机在提供samba共享服务:
#nmblookup -d 2 * or #nmblookup -B 192.168.100.255 *
检测其它网段内的某台机器是否提供samba服务
#nmblookup -A 192.168.15.48
但不能用 #nmblookup -B 192.168.15.255 *,因为一般的路由器和Linux双宿主机不转发
子网
直接广播 。
3. netbios over TCP/IP使用的协议及端口号
a. 共有三种netbios服务
netbios-ns 137/udp(大多数) and 137/tcp
netbios-dgm 138/udp(大多数) and 138/udp
netbios-ssn 139/tcp
b.windows机器上的PC应用程序通过不同机器间的netbios名字来彼此通讯 。
c. 每次当windows机器启动时,它向整个网段内发出137/udp广播 , 一来登记向某
工作组内的主浏览器登记netbios名字 , 二来确信整个子网内没有与之相同的名字
d. 网上邻居中所建立起来的浏览列表仅仅是列表 , 看不到也没有关系,同样也可以通过
计算机查找,net use命令等来与别的计算机通讯,共享文件和打印机
e. 不在同一网段内的机器或者是拨号到LAN上的PPP服务器后不可能进行网上邻居的浏览

这是因为子网内的广播不被串行线路和路由器转发 。
f. 如何在拨号到LAN上的PPP服务器后使用LAN上的Samba服务器?
1 在windows目录下编辑c:windowslmhosts
如: 192.168.11.3 sh3 #PRE #DOM:sales
执行nbtstat -R 去enable它,不需要重启windows
2 你必须登录windows,若是用户模式的samba,你应该选择windows NT登录
3 其它设置跟LAN上的机器一样
4 拨号建立连接后,在查找‘计算机’功能定位资源
5 现在你能使用远端服务器上的目录和打印机 。
在不同网段内的机器也可参照此做法 , 也可用plug-gw代理tcp/139号端口访问另一网段
上的
samba
服务器 。
4. 用Microsoft FTP 服务器的简便方法 。
a. 加‘ftp到lmhosts文件
198.105.232.1 ftp #PRE
运行nbtstat -R
b. net view \ftp
c. net use g: \ftpdata
d. dir g:
5. smbmount 的使用
a. #smbmount //192.168.100.1/pub /mnt/sh3 -U jephe%password
Linux系统下tar命令 , 菜鸟提问比如现在在 /A 文件夹下把下面的B文件夹打包成bzip2高压方式
tar cjvf C.tar.bz2 B# 默认是在当前文件夹下的
OK后会在/A文件夹下有个名为“C.tar.bz2”的tar压缩文件
tar tvf C.tar.bz2# 列出里面的文件
会用les命令linux了吧les命令linux? 呵呵 再把文档粘给你 比较长 别哭哦 学习之路还很远的
TAR(1)tarTAR(1)
NAME
tar - The GNU version of the tar archiving utility
SYNOPSIS
tar operation [options]
Operations:
[-]A --catenate --concatenate
[-]c --create
[-]d --diff --compare
[-]r --append
[-]t --list
[-]u --update
[-]x --extract --get
--delete
Common Options:
-C, --directory DIR
-f, --file F
-j, --bzip2
-p, --preserve-permissions
-v, --verbose
-z, --gzip
All Options:
[--atime-preserve][-b, --blocking-factor N ] [ -B, --read-full-
records ] [ --backup BACKUP-TYPE ] [ --block-compress ] [ -C,--direc-
tory DIR ] [ --check-links ] [ --checkpoint ] [ -f, --file [HOSTNAME:]F
] [ -F, --info-script F --new-volume-script F ] [ --force-local][
--formatFORMAT ] [ -g, --listed-incremental F ] [ -G, --incremental ]
[ --group GROUP ] [ -h, --dereference ] [ --help ] [ -i, --ignore-zeros
][--ignore-case] [ --ignore-failed-read ] [ --index-file FILE ] [
-j, --bzip2 ] [ -k, --keep-old-files ] [-K,--starting-fileF][
--keep-newer-files] [ -l, --one-file-system ] [ -L, --tape-length N ]
[ -m, --touch, --modification-time ] [ -M, --multi-volume][--mode
PERMISSIONS][ -N, --after-date DATE, --newer DATE ] [ --newer-mtime
DATE ] [ --no-anchored ] [ --no-ignore-case][--no-recursion][
--no-same-permissions ] [ --no-wildcards ] [ --no-wildcards-match-slash
] [ --null] [ --numeric-owner ] [ -o,--old-archive,--portabil-
ity,--no-same-owner][-O,--to-stdout] [ --occurrence NUM ] [
--overwrite ] [ --overwrite-dir ] [ --owner USER ] [ -p, --same-permis-
sions, --preserve-permissions ] [ -P, --absolute-names ] [ --pax-option
KEYWORD-LIST ] [ --posix ] [ --preserve ] [ --acls ] [--selinux][
--xattrs][--no-acls][--no-selinux][ --no-xattrs ] [ -R,
--block-number ] [ --record-size SIZE ] [ --recursion ] [--recursive-
unlink ] [ --remove-files ] [ --rmt-command CMD ] [ --rsh-command CMD ]
[ -s, --same-order, --preserve-order ] [ -S, --sparse ] [--same-owner
] [ --show-defaults ] [ --show-omitted-dirs ] [ --strip-components NUM-
BER, --strip-path NUMBER (1) ] [ --suffix SUFFIX ] [ -T, --files-from F
] [ --totals] [ -U, --unlink-first ] [ --use-compress-program PROG ]
[ --utc ] [ -v, --verbose ] [ -V, --labelNAME][--version][
--volno-file F ] [ -w, --interactive, --confirmation ] [ -W, --verify ]
[ --wildcards ] [ --wildcards-match-slash ] [ --exclude PATTERN ] [ -X,
--exclude-fromFILE][ -Z, --compress, --uncompress ] [ -z, --gzip,
--gunzip, --ungzip ] [ -[0-7][lmh] ]
(1) tar-1.14 uses --strip-path, tar-1.14.90uses --strip-components
DESCRIPTION
This manual page documents the GNU version of tar, an archiving program
designedtostoreandextract files from an archive file known as a
tarfile.A tarfile may be made on a tape drive, however,itisalso
commonto write a tarfile to a normal file.The first argument to tar
must be one of the options Acdrtux, followed by any optional functions.
Thefinalargumentsto tar are the names of the files or directories
which should be archived.The use of a directory namealwaysimplies
that the subdirectories below should be included in the archive.
EXAMPLES
tar -xvf foo.tar
verbosely extract foo.tar
tar -xzf foo.tar.gz
extract gzipped foo.tar.gz
tar -cjf foo.tar.bz2 bar/
createbzippedtararchiveofthedirectorybarcalled
foo.tar.bz2
tar -xjf foo.tar.bz2 -C bar/
extract bzipped foo.tar.bz2 after changing directory to bar
tar -xzf foo.tar.gz blah.txt
extract the file blah.txt from foo.tar.gz
FUNCTION LETTERS
One of the following options must be used:
-A, --catenate, --concatenate
append tar files to an archive
-c, --create
create a new archive
-d, --diff, --compare
find differences between archive and file system
-r, --append
append files to the end of an archive
-t, --list
list the contents of an archive
-u, --update
only append files that are newer than the existing in archive
-x, --extract, --get
extract files from an archive
--delete
delete from the archive (not for use on mag tapes!)
COMMON OPTIONS
-C, --directory DIR
change to directory DIR
-f, --file [HOSTNAME:]F
use archive file or device F (default "-", meaning stdin/stdout)
-j, --bzip2
filter archive through bzip2, use to decompress .bz2 files
-p, --preserve-permissions
extract all protection information
-v, --verbose
verbosely list files processed
-z, --gzip, --ungzip
filter the archive through gzip
ALL OPTIONS
--atime-preserve
don't change access times on dumped files
-b, --blocking-factor N
block size of Nx512 bytes (default N=20)
-B, --read-full-blocks
reblock as we read (for reading 4.2BSD pipes)
--backup BACKUP-TYPE
backupfilesinstead of deleting them using BACKUP-TYPE simple
or numbered
--block-compress
block the output of compression program for tapes
-C, --directory DIR
change to directory DIR
--check-links
warn if number of hard links to the file on the filesystemmis-
match the number of links recorded in the archive
--checkpoint
print directory names while reading the archive
-f, --file [HOSTNAME:]F
use archive file or device F (default "-", meaning stdin/stdout)
-F, --info-script F --new-volume-script F
run script at end of each tape (implies --multi-volume)
--force-local
archive file is local even if has a colon
--format FORMAT
selects output archive format
v7 - Unix V7
oldgnu - GNU tar =1.12
gnu - GNU tar 1.13
ustar - POSIX.1-1988
posix - POSIX.1-2001
-g, --listed-incremental F
create/list/extract new GNU-format incremental backup
-G, --incremental
create/list/extract old GNU-format incremental backup
-h, --dereference
don't dump symlinks; dump the files they point to
--help like this manpage, but not as cool
-i, --ignore-zeros
ignore blocks of zeros in archive (normally mean EOF)
--ignore-case
ignore case when excluding files
--ignore-failed-read
don't exit with non-zero status on unreadable files
--index-file FILE
send verbose output to FILE instead of stdout
-j, --bzip2
filter archive through bzip2, use to decompress .bz2 files
-k, --keep-old-files
keep existing files; don't overwrite them from archive
-K, --starting-file F
begin at file F in the archive
--keep-newer-files
do not overwrite files which are newer than the archive
-l, --one-file-system
stay in local file system when creating an archive
-L, --tape-length N
change tapes after writing N*1024 bytes
-m, --touch, --modification-time
don't extract file modified time
-M, --multi-volume
create/list/extract multi-volume archive
--mode PERMISSIONS
apply PERMISSIONS while adding files (see chmod(1))
-N, --after-date DATE, --newer DATE
only store files newer than DATE
--newer-mtime DATE
like --newer, but with a DATE
--no-anchored
match any subsequenceof the name's components with --exclude
--no-ignore-case
use case-sensitive matching with --exclude
--no-recursion
don't recurse into directories
--no-same-permissions
apply user's umask when extractingfilesinsteadofrecorded
permissions
--no-wildcards
don't use wildcards with --exclude
--no-wildcards-match-slash
wildcards do not match slashes (/) with --exclude
--null --files-from reads null-terminated names, disable --directory
--numeric-owner
always use numbers for user/group names
-o, --old-archive, --portability
like--format=v7;-oexhibitsthis behavior when creating an
archive (deprecated behavior)
-o, --no-same-owner
do not attempt to restore ownership when extracting; -o exhibits
this behavior when extracting an archive
-O, --to-stdout
extract files to standard output
--occurrence NUM
processonlyNUMoccurrencesofeachnamed file; used with
--delete, --diff, --extract, or --list
--overwrite
overwrite existing files and directory metadata when extracting
--overwrite-dir
overwrite directory metadata when extracting
--owner USER
change owner of extraced files to USER
-p, --same-permissions, --preserve-permissions
extract all protection information
-P, --absolute-names
don't strip leading '/'s from file names
--pax-option KEYWORD-LIST
used only with POSIX.1-2001 archives to modify the way tarhan-
dles extended header keywords
--posix
like --format=posix
--preserve
like --preserve-permissions --same-order
--acls this option causes tar to store each file's ACLs in the archive.
--selinux
this option causes tar to storeeachfile'sSELinuxsecurity
context information in the archive.
--xattrs
thisoption causes tar to store each file's extended attributes
in the archive. This option also enables --acls and--selinuxif
they haven't been set already, due to the fact that the data for
those are stored in special xattrs.
--no-acls
This option causes tar not to storeeachfile'sACLsinthe
archive and not to extract any ACL information in an archive.
--no-selinux
this option causes tar not to store each file's SELinux security
context information inthearchiveandnottoextractany
SELinux information in an archive.
--no-xattrs
thisoptioncausestarnottostoreeachfile's extended
attributes in thearchiveandnottoextractanyextended
attributes in an archive. This option also enables --no-acls and
--no-selinux if they haven't been set already.
-R, --record-number
show record number within archive with each message
--record-size SIZE
use SIZE bytes per record when accessing archives
--recursion
recurse into directories
--recursive-unlink
remove existing directories before extracting directories of the
same name
--remove-files
remove files after adding them to the archive
--rmt-command CMD
use CMD instead of the default /usr/sbin/rmt
--rsh-command CMD
use remote CMD instead of rsh(1)
-s, --same-order, --preserve-order
list of names to extract is sorted to match archive
-S, --sparse
handle sparse files efficiently
--same-owner
create extracted files with the same ownership
--show-defaults
display the default options used by tar
--show-omitted-dirs
print directories tar skips while operating on an archive
--strip-components NUMBER, --strip-path NUMBER
stripNUMBERofleadingcomponentsfromfilenames before
extraction
(1) tar-1.14 uses --strip-path, tar-1.14.90uses --strip-compo-
nents
--suffix SUFFIX
use SUFFIX instead of default '~' when backing up files
-T, --files-from F
get names to extract or create from file F
--totals
print total bytes written with --create
-U, --unlink-first
remove existing files before extracting files of the same name
--use-compress-program PROG
access the archive through PROG which is generally a compression
program
--utcdisplay file modification dates in UTC
-v, --verbose
verbosely list files processed
-V, --label NAME
create archive with volume name NAME
--version
print tar program version number
--volno-file F
keep track of which volume of a multi-volume archive its working
in FILE; used with --multi-volume
-w, --interactive, --confirmation
ask for confirmation for every action
-W, --verify
attempt to verify the archive after writing it
--wildcards
use wildcards with --exclude
--wildcards-match-slash
wildcards match slashes (/) with --exclude
--exclude PATTERN
exclude files based upon PATTERN
-X, --exclude-from FILE
exclude files listed in FILE
-Z, --compress, --uncompress
filter the archive through compress
-z, --gzip, --gunzip, --ungzip
filter the archive through gzip
--use-compress-program PROG
filter the archive through PROG (which must accept -d)
-[0-7][lmh]
specify drive and density
BUGS
TheGNUfolks, in general, abhor man pages, and create info documents
instead.The maintainer of tar falls into thiscategory.Thusthis
manpage may not be complete, nor current, and was included in the Red
Hat CVS tree because man is a great tool :).This man pagewasfirst
taken from Debian Linux and has since been loving updated here.
REPORTING BUGS
Please report bugs via
SEE ALSO
Thefulldocumentation for tar is maintained as a Texinfo manual.If
the info and tar programs are properly installed at your site, the com-
mand
info tar
should give you access to the complete manual.
AUTHORS
Debian Linux
Mike Frysinger vapier@gentoo.org
GNUOct 2004TAR(1)
修改linux系统的iptagles配置,不包括那些操作命令x修改IP地址 。修改linux系统的iptagles配置,不包括x修改IP地址这条命令 。操作是汉语词汇,拼音是cāozuò,意思是指人用手活动的一种行为,也是一种技能,含义很广泛 。一般是指劳动;劳作;或者按照一定的规范和要领操纵动作 。
les命令linux的介绍就聊到这里吧,感谢你花时间阅读本站内容,更多关于linux命令lsl、les命令linux的信息别忘了在本站进行查找喔 。

    推荐阅读