The 'compress' command is normally supplied in all Unix and Linux distributions. The Gzip protocol is also very common, as is the original pkzip format.
7z is also used along with others, but those are the most popular.
Linux support various compression formats the popular ones are
1. gz (gzip)
2. bz (bZip)
3. rar
4. zip
The most popular are bzip and gzip all s/w distributions come in form of tarball are either gz or bz.
There are many file compressors to choose from. 7zip, zip, gzip, bzip2, lzma, and ect. Probably the 2 most common are gzip and bzip2.
Run 'man <program name>' to read the manual for the one you want to use.
Below are some examples compressing the file test.txt .
$ 7z a test.7z test.txt
$ zip test.zip test.txt
$ gzip test.txt
$ bzip2 test.txt
$ lzma test.txt
In Linux the chmod command is used to set file permissions.
in terminal it is : #cp file_a file_b
the command to make anything executable is chmod +x <file>
touch newfile will make a new empty file in linux os !
The command MV is used to move a file in simple Linux Code. This command will move files and directories from one spot to another spot. To move a file, one would simply type in the letters MV before its name.
The command is: diff file1.txt file2.txt
You can schedule jobs using cron and the /etc/crontab file, or you can use the "at" command
cat
The cp command does that.
The tail command can be used to output the last part of a text file. The default is to show the last 10 lines of a file and options are available to override this.
There is no "pack" command in Linux. However, there are numerous compression and archival programs available for use."tar" is an archival program. It does no compression, but allows you to put multiple files into one."gzip" is a compression program. However, it can only compress one file. Used in conjunction with tar, it is just slightly better than the ".zip" format."bzip2" is another compression program with better compression ratios. Like "gzip," it is for compressing single files only. It is usually used in conjunction with "tar.""zip" and "unzip" are programs for the "ZIP" archive format. It performs both compression and archival.Answer:I'm not sure if this is an improvement to the above answer or not. As mentioned above, there is no "pack" command in Linux but, in addition to the excellent answer above, a compiled program may be 'stripped' in Linux with the 'strip' command and this will usually serve to reduce the binary file size. The Linux 'strip' command modifies the binary program's symbol tables.
In order to zip a subdirectory in Linux you would use the zip command with the recursive flag to specify that it should add all files under that directory into the zip file. The command would then be zip -r .zip .