View Linux operating system number of bits
(1)
Terminal input:
File/sbin/init
As shown:
/sbin/init:elf 32-bit LSB executable, Intel 80386, version 1 (SYSV), for Gnu/linux 2.6.9, dynamically linked (uses shared LIBS), for Gnu/linux 2.6.9, stripped
That is, 32-bit Linux, 64-bit, which shows the 64-bit
(2)
Terminal input:
Uname-a
As shown:
Linux redhat-tj 2.6.18-128.el5 #1 SMP Wed Jan 10:44:23 EST i686 i686 i386 gnu/linux
It is 32-bit
(3)
Terminal input:
Getconf Word_bit
As shown:
32
Is the 32-bit Linux
Http://blog.chinaunix.net/uid-20423564-id-1949491.html
Linux commonly used compression commands have gzip and zip, two kinds of compression package end different: Zip compressed after file is *.zip, and gzip compressed file *.gz
The corresponding decompression commands are gunzip and unzip.
To view the contents of a zip without decompressing:
Unzip-v Xx.zip
gzip Command:
# gzip Test.txt
It will compress the file into a file test.txt.gz, the original file is not, unzip the same
# Gunzip Test.txt.gz
It will unzip the file into a file Test.txt, the original file is not, in order to preserve the original file, we can add the-C option and take advantage of the Linux redirection
# gzip-c Test.txt >/root/test.gz
This will not only keep the original files, but also can put the compressed package in any directory, decompression is the same
# gunzip-c/root/test.gz >./test.txt
Zip command:
# Zip Test.zip test.txt
It compresses the Test.txt file to Test.zip, and you can also specify the directory of the compressed package, such as/root/test.zip
# Unzip Test.zip
It will unzip the file to the current directory by default, and if you want to extract it to the specified directory, you can add the-d option
# Unzip test.zip-d/root/
Reference: http://www.iteye.com/topic/1036348
Common Operations Summary under Linux