📄 linux commands line.htm
字号:
<TR height=34>
<TD bgColor=#000000 colSpan=2 height=34><SPAN
class=titolo_cmdline style3>Special Attributes on file
- use "+" to set permissions and "-" to remove
</SPAN></TD></TR>
<TR height=17>
<TD height=17><SPAN class=Stile36 style3>chattr +a
file1</SPAN></TD>
<TD width=387
bgColor=#e0e0e0 class=descrizione style3>allows write opening of a file
only append mode</TD></TR>
<TR height=29>
<TD height=29><SPAN class=Stile36 style3>chattr +c
file1</SPAN></TD>
<TD width=387
bgColor=#e0e0e0 class=descrizione style3>allows that a file is compressed
/ decompressed automatically by the
kernel</TD></TR>
<TR height=29>
<TD height=29><SPAN class=Stile36 style3>chattr +d
file1</SPAN></TD>
<TD width=387
bgColor=#e0e0e0 class=descrizione style3>makes sure that the program
ignores Dump the files during backup</TD></TR>
<TR height=29>
<TD height=29><SPAN class=Stile36 style3>chattr +i
file1</SPAN></TD>
<TD width=387
bgColor=#e0e0e0 class=descrizione style3>makes it an immutable file,
which can not be removed, altered, renamed or
linked</TD></TR>
<TR height=17>
<TD height=17><SPAN class=Stile36 style3>chattr +s
file1</SPAN></TD>
<TD width=387
bgColor=#e0e0e0 class=descrizione style3>allows a file to be deleted
safely</TD></TR>
<TR height=29>
<TD height=29><SPAN class=Stile36 style3>chattr
+S file1</SPAN></TD>
<TD width=387
bgColor=#e0e0e0 class=descrizione style3>makes sure that if a file is
modified changes are written in synchronous mode
as with sync</TD></TR>
<TR height=17>
<TD height=17><SPAN class=Stile36 style3>chattr +u
file1</SPAN></TD>
<TD width=387
bgColor=#e0e0e0 class=descrizione style3>allows you to recover the
contents of a file even if it is
canceled</TD></TR>
<TR height=17>
<TD height=17><SPAN
class=Stile36 style3>lsattr</SPAN></TD>
<TD width=387
bgColor=#e0e0e0 class=descrizione style3>show specials
attributes</TD></TR>
<TR height=17>
<TD align=middle colSpan=2 height=17><SPAN
class=Stile20 style3>linux commands line v1.0 -
LinuxGuide.it </SPAN></TD></TR>
<TR height=17>
<TD bgColor=#000000 colSpan=2 height=17><SPAN
class=titolo_cmdline style3>Archives and compressed
files </SPAN></TD></TR>
<TR height=17>
<TD height=17><SPAN class=Stile36 style3>bunzip2
file1.bz2</SPAN></TD>
<TD width=387
bgColor=#e0e0e0 class=descrizione style3>decompress a file called
'file1.bz2'</TD></TR>
<TR height=17>
<TD height=17><SPAN class=Stile36 style3>bzip2
file1</SPAN></TD>
<TD width=387
bgColor=#e0e0e0 class=descrizione style3>compress a file called
'file1'</TD></TR>
<TR height=17>
<TD height=17><SPAN class=Stile36 style3>gunzip
file1.gz</SPAN></TD>
<TD width=387
bgColor=#e0e0e0 class=descrizione style3>decompress a file called
'file1.gz'</TD></TR>
<TR height=17>
<TD height=17><SPAN class=Stile36 style3>gzip
file1</SPAN></TD>
<TD width=387
bgColor=#e0e0e0 class=descrizione style3>compress a file called
'file1'</TD></TR>
<TR height=17>
<TD height=17><SPAN class=Stile36 style3>gzip -9
file1</SPAN></TD>
<TD width=387
bgColor=#e0e0e0 class=descrizione style3>compress with maximum
compression</TD></TR>
<TR height=17>
<TD height=17><SPAN class=Stile36 style3>rar a
file1.rar test_file</SPAN></TD>
<TD width=387
bgColor=#e0e0e0 class=descrizione style3>create an archive rar called
'file1.rar'</TD></TR>
<TR height=17>
<TD height=17><SPAN class=Stile36 style3>rar a
file1.rar file1 file2 dir1</SPAN></TD>
<TD width=387
bgColor=#e0e0e0 class=descrizione style3>compress 'file1', 'file2' and
'dir1' simultaneously</TD></TR>
<TR height=17>
<TD height=17><SPAN class=Stile36 style3>rar x
file1.rar</SPAN></TD>
<TD width=387
bgColor=#e0e0e0 class=descrizione style3>decompress rar archive</TD></TR>
<TR height=17>
<TD height=17><SPAN class=Stile36 style3>unrar x
file1.rar</SPAN></TD>
<TD width=387
bgColor=#e0e0e0 class=descrizione style3>decompress rar archive</TD></TR>
<TR height=17>
<TD width=376 height=17><SPAN class=Stile36 style3>tar
-cvf archive.tar file1</SPAN></TD>
<TD width=387
bgColor=#e0e0e0 class=descrizione style3>create a uncompressed
tarball</TD></TR>
<TR height=17>
<TD height=17><SPAN class=Stile36 style3>tar -cvf
archive.tar file1 file2 dir1</SPAN></TD>
<TD width=387
bgColor=#e0e0e0 class=descrizione style3>create an archive containing
'file1', 'file2' and 'dir1'</TD></TR>
<TR height=17>
<TD height=17><SPAN class=Stile36 style3>tar -tf
archive.tar</SPAN></TD>
<TD width=387
bgColor=#e0e0e0 class=descrizione style3>show contents of an
archive</TD></TR>
<TR height=17>
<TD height=17><SPAN class=Stile36 style3>tar -xvf
archive.tar</SPAN></TD>
<TD width=387
bgColor=#e0e0e0 class=descrizione style3>extract a tarball</TD></TR>
<TR height=17>
<TD width=376 height=17><SPAN class=Stile36 style3>tar
-xvf archive.tar -C /tmp</SPAN></TD>
<TD width=387
bgColor=#e0e0e0 class=descrizione style3>extract a tarball into /
tmp</TD></TR>
<TR height=17>
<TD width=376 height=17><SPAN class=Stile36 style3>tar
-cvfj archive.tar.bz2 dir1</SPAN></TD>
<TD width=387
bgColor=#e0e0e0 class=descrizione style3>create a tarball compressed into
bzip2</TD></TR>
<TR height=17>
<TD height=17><SPAN class=Stile36 style3>tar -xvfj
archive.tar.bz2</SPAN></TD>
<TD width=387
bgColor=#e0e0e0 class=descrizione style3>decompress a compressed tar
archive in bzip2</TD></TR>
<TR height=17>
<TD width=376 height=17><SPAN class=Stile36 style3>tar
-cvfz archive.tar.gz dir1</SPAN></TD>
<TD width=387
bgColor=#e0e0e0 class=descrizione style3>create a tarball compressed into
gzip</TD></TR>
<TR height=17>
<TD height=17><SPAN class=Stile36 style3>tar -xvfz
archive.tar.gz</SPAN></TD>
<TD width=387
bgColor=#e0e0e0 class=descrizione style3>decompress a compressed tar
archive in gzip</TD></TR>
<TR height=17>
<TD width=376 height=17><SPAN class=Stile36 style3>zip
file1.zip file1</SPAN></TD>
<TD width=387
bgColor=#e0e0e0 class=descrizione style3>create an archive compressed in
zip</TD></TR>
<TR height=17>
<TD height=17><SPAN class=Stile36 style3>zip -r
file1.zip file1 file2 dir1</SPAN></TD>
<TD width=387
bgColor=#e0e0e0 class=descrizione style3>compress in zip several files
and directories simultaneously</TD></TR>
<TR height=17>
<TD width=376 height=17><SPAN
class=Stile36 style3>unzip file1.zip</SPAN></TD>
<TD width=387
bgColor=#e0e0e0 class=descrizione style3>decompress a zip
archive</TD></TR>
<TR height=17>
<TD align=middle colSpan=2 height=17><SPAN
class=Stile20 style3>linux commands line v1.0 -
LinuxGuide.it </SPAN></TD></TR>
<TR height=17>
<TD bgColor=#000000 colSpan=2 height=17><SPAN
class=titolo_cmdline style3>RPM Packages - Fedora, Red
Hat and like </SPAN></TD></TR>
<TR height=17>
<TD height=17><SPAN class=Stile36 style3>rpm -ivh
package.rpm</SPAN></TD>
<TD width=387
bgColor=#e0e0e0 class=descrizione style3>install a rpm package</TD></TR>
<TR height=17>
<TD height=17><SPAN class=Stile36 style3>rpm -ivh
--no
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -