Module I - More About Linux
Module I - More About Linux
LINUX BASICS
Introduction to Linux
File System of the Linux
General usage of Linux kernel & basic commands
Linux users and group
Permissions for file
Directory and users
Searching a file & directory
Zipping and Unzipping concepts
Linux for the Industry 4.0 Era
OPENIL and its advantages
Features of OPENIL
Department of Computer
Linux Shell Science and Engineering
Introduction to Linux
File System of the Linux
General usage of Linux kernel & basic commands
Linux users and group
Permissions for file
Directory and users
Searching a file & directory
Zipping and Unzipping concepts
Linux for the Industry 4.0 Era
OPENIL and its advantages
Features of OPENIL
Department of Computer
Linux User Login Science and Engineering
Linux is a multiuser OS
Allow multiple users to use the resource of a computer at the
same time
Every user needs to login the system with the password
provided to identify their right in using the resource
Require for both client-server based system or desktop
Department of Computer
Linux User Interface Science and Engineering
Introduction to Linux
File System of the Linux
General usage of Linux kernel & basic commands
Linux users and group
Permissions for file
Directory and users
Searching a file & directory
Zipping and Unzipping concepts
Linux for the Industry 4.0 Era
OPENIL and its advantages
Features of OPENIL
ZIP command Department of Computer
Science and Engineering
Syntax
zip [options] zipfile files_list
Extracting from .zip
Unzip <filename.zip>
Possibilities:
1. -d removes files from a zip archieve
Zip –d <filename.zip> <file.txt>
2. -u updates a file in zip archieve
Zip –u <filename.zip> <file.txt>
3. -m deletes original files after zipping
Zip –m <filename.zip> file.txt
4. -r recursively zips files in a directory
Zip –r <filename.zip> <directory_name>
5. -v verbose mode or prints diagnostic information
Zip –v <filename.zip> <file1.txt>
Gzip/gunzip Command Department of Computer
Science and Engineering
Gunzip synopsis
gunzip [ -acfhlLnNrtvV ] [-S suffix] [ name ... ]
gunzip also recognizes the special extensions .tgz and .taz as shorthands
for .tar.gz and .tar.Z respectively.
Possibilities:
1. -k allows to keep original file
Gzip –k <filename>
Or –c
Gzip –c <filename> > filename.gz
2. -v prints the percentage reduction and name of files processed
Gzip –v <filename>
3. Compress multiple files
Gzip <file1> <file2> <file3>
gzip OPTIONS Department of Computer
Science and Engineering
-f –force
Force compression or decompression even if the file has
multiple links or the corresponding file already exists
gzip OPTIONS Department of Computer
Science and Engineering
-l –list
For each compressed file, list the following fields:
compressed size: size of the compressed file
uncompressed size: size of the uncompressed file
ratio: compression ratio (0.0% if unknown)
uncompressed_name: name of the uncompressed file
-n --no-name
– When compressing, do not save the original file name and time stamp by
default.
– When decompressing, do not restore the original file name if present
(remove only the gzip suffix from the compressed file name) and do not
restore the original time stamp if present.
gzip OPTIONS Department of Computer
Science and Engineering
bzip2, bunzip2
a block-sorting file compressor, v1.0.2
bzcat
decompresses files to stdout
bzip2recover
recovers data from damaged bzip2 files
on the average about 10-20% better than gzip
– at the expense of longer compression times
Output with .bz2 filename extension
Department of Computer
bzip2: Synopsis Science and Engineering
https://www.geeksforgeeks.org/bzip2-command-in-linux-with-examples/
https://www.javatpoint.com/linux-bzip2-bunzip2
https://www.javatpoint.com/linux-bzcat-bzmore
https://www.geeksforgeeks.org/tar-command-linux-examples/
bzip2 OPTIONS Department of Computer
Science and Engineering
-c –stdout
– (as in gzip) Compress or decompress to standard output.
• -t –test
– Check integrity of the specified file(s), but don't
decompress them.
This really performs a trial decompression and throws
away the result.
• -k –keep
– Keep (don't delete) input files during compression or
decompression.
bzip2 OPTIONS Department of Computer
Science and Engineering
• -s –small
Reduce memory usage, for compression, decompression
and testing.
• -1 (or --fast) to -9 (or --best)
Set the block size to 100 k, 200 k .. 900 k when
compressing.
Has no effect when decompressing.
bzip2 decompression Department of Computer
Science and Engineering
bzcat
decompresses files to stdout
• bunzip2
• Cannot use bunzip2 to uncompress files compressed with gzip
and vice versa
• bzip2 -d
decompresses all specified files.
Files which were not created by bzip2 will be detected and
ignored
warning issued.
bzip2 decompression Department of Computer
Science and Engineering
filename.tbz2 filename.tar
filename.tbz anyothername.out
anyothername
Linux Command: tar Department of Computer
Science and Engineering
• -c
Create a new archive
• -x
Extract files from an archive
• -t
List table of contents to an archive
• -r
append
tar options Department of Computer
Science and Engineering
• -u
Update files
• -d
Compare files in the archive to those in the file system
• -v
• – print verbose information
• -k
To keep any existing files when extracting
• B filename
To specify that the tar file to be read or written is filename.
Other commands Department of Computer
Science and Engineering
Synopsis:
compress [ -f ] [ -v ] [ -c ] [ -V ] [ -r ] [ -b bits ]
[ name ... ]
uncompress [ -f ] [ -v ] [ -c ] [ -V ] [ name ... ]
zip [-aABcdDeEfFghjklLmoqrRSTuvVwXyz!@$] [- b
path] [-n suffixes] [-t mmddyyyy] [-tt mmddyyyy]
[ zipfile [ file1 file2 ...]] [-xi list]
unzip [-Z] [-cflptuvz[abjnoqsCLMVX$/:]] file[.zip]
[file(s) ...] [-x xfile(s) ...] [-d exdir]
Topics Department of Computer
Science and Engineering
Introduction to Linux
File System of the Linux
General usage of Linux kernel & basic commands
Linux users and group
Permissions for file
Directory and users
Searching a file & directory
Zipping and Unzipping concepts
Linux for the Industry 4.0 Era
OPENIL and its advantages
Features of OPENIL
Department of Computer
OPENIL Science and Engineering
Internet
Major players like Amazon, Google and Netflix all rely on
Linux for delivering services
Facebook and Twitter each use a Linux variant that has
been tweaked in-house
Finance
A number of markets trade using solutions built on a Linux
stack, including the Wall Street, NYSE Euronext, London
Stock Exchange and Chicago Mercantile Exchange
Linux Usage in Industry Department of Computer
Science and Engineering
Insurance
AIG uses Red Hat and SUSE variants in its architecture
Health insurer, Cigna, uses Red Hat to build operating
environments on Linux
Healthcare
Red Hat skills come in handy for Linux system
administration jobs at healthcare organizations such as
Beth Israel Deaconess Medical Center
Many Debian “pure blends” — subsets of the Debian
GNU/Linux distribution — address the specific needs of
healthcare providers and researchers by packaging the
kernel with drug databases or electronic medical record
systems
Linux Usage in Industry Department of Computer
Science and Engineering
Other Industries
Government, education and military are other sectors
increasing their reliance on Linux system administration
Innovative companies using Linux systems to support
advances in autonomous vehicles, wearable devices, and
other “smart” combinations of hardware and software
Startups and smaller businesses often choose the open-
source OS for their operating servers because so many
distributions are freely available
Department of Computer
Job Positions Science and Engineering
Linux Certifications
Most of the hiring manager are looking to recruit Linux
professionals.
The emergence of open cloud platforms is creating increasing
demand for Linux professionals who have the right expertise
Linux-certified professionals always be a better position in the
job market
Employers are looking for more Linux talent.
Better salary increments for Linux certified professionals
Department of Computer
Linux Certifications Science and Engineering
Thanks!…
Any question?