Showing posts with label linux terminology. Show all posts
Showing posts with label linux terminology. Show all posts

Saturday, July 2, 2011

what is INODE in linux

 1.   Inode is a data structure on a traditional unix-style file system such as UFS. An inode stores all the information about a regular file, directory, and file system expect its data and name.

 2.   A file system relies on data structures that contain information about files, beside the file content. The former is called metadata (data which describe data).

 3.   Each file is associated with an inode, which is identified by an integer number, often referred to as i-number or i-node.

 4.   Inodes store information about files and folders, such as ownership, access mode (read, write, execute permission) and filetype.

 5.   A file inode No. can be found using the " ls -i " (for inode no. of file).

Thursday, June 23, 2011

In linux, what is tar

 In linux; tar  (Tape ARchive) is file format and name of a program used to simply combine a few files into a single file, for easy storage and distribution. (.zip and .rar in window)
              In computing tar (derived from tape archive) is both a file format and the name of a program used to handle such files.
  • *.tar
  • *.tgz is equivalent to *.tar.gz (gzip)
  • *.tbz and *.tb2 are equivalent to* .tar.bz2 (bzip)
  • *.taz is equivalent to *.tar.Z
  • *.tlz is equivalent to *.tar.lz
  • *.txz is equivalent to *.tar.xz
A tar file or compressed tar file is commonly referred to as a tarball
Note: A ".tar" file is not a compressed files, it is a collection of files within a single file uncompressed. If the file is a .tar.gz ("tarball") or ".tgz" file it is a collection of files that is compressed. If you are looking to compress a file you would create the tar file then gzip the file.

1. Creating an archive using tar command :
1.1    Creating a tar file:
             $ tar cvf archive_name.tar dirname/
  • The letter c means "create archive".
  • The letter v means "verbose", which tells tar to print all the filenames as they are added to the archive.
  • The letter f tells tar that the name of the archive appears next (right after these options).
1.2    Creating a tarred file that is compressed with gzip
            $ tar cjzf archive_name.tgz dirname/
                 'z' means "compress this archive with gzip

1.3    Creating a tarred file that is compressed with bzip
            $ tar cvjf archive_name.tbz dirname/
                   'j' means "compress this archive with bzip


2. Extracting (untar) an archive using tar command
2.1    Extract a *.tar archieve
            $ tar xvf archieve_name.tar
                   x – extract files from archive

2.2    Extract a gzipped tar archive ( *.tgz )
           $ tar xvzf archieve_name.tgz

2.3    Extracting a bzipped tar archive ( *.tbz ) 

           $ tar xvjf archieve_name.tbz


3. Listing an archive using tar command
3.1   View the tar archive file
$ tar tvf archive_name.tar

 

3.2   Extract a gzipped tar archive ( *.tgz )

          $ tar tvzf archieve_name.tgz

3.3   Extracting a bzipped tar archive ( *.tbz )

          $ tar tvjf archieve_name.tbz

     

Thursday, February 24, 2011

what is a Port Number

                  A port is a communication point where one or more computers in a network communicate with each other through a program or software. There are about 0-65535 ports assigned to do specific tasks in a PC. Most ports operate with TCP or UDP protocol.

                Port numbers are assigned by an organisation called IANA  and ports are allocated to various needs to avoid confusion.

Ports are classified into 3 main categories..
    * Well Known Ports (Port numbers 0 - 1023)
    * Registered Ports (Port numbers1024 - 49151)
    * Private or Dynamic Ports (Port numbers 49152 - 65535)

Well Known Ports :
              Well known ports are used by system or processes run by root or with specific previleges. The port numbers range from 0 to 1023.

Registered Ports :
               The registered port numbers range from 1024-49151. Such ports are used by programs run by users in the system.

Private/Dynamic Ports :
               Private ports are not assigned for any specific purpose. its range are from range 49152–65535

some important port number :
  21 --- FTP
  23 --- Telnet
  25 --- SMTP
  53 --- DNS
  68 --- DHCP
  80 --- HTTP
110 --- POP3
119 --- NNTP
123 --- NTP (Network time protocol)
139 --- NetBIOS
161 --- SNMP
389 --- LDAP (Lightweight Directory Access Protocol)
443 --- HTTPS (HTTP over SSL/TLS)
443 --- SSL (https) (http protocol over TLS/SSL)
220 --- IMAP3
2049 --- TCP/UDP

For more info click here