Basic -> Advanced

This page gives you indepth commands which will help to write linux scripts

man man

 The table below shows the section numbers of the manual followed by the types of pages they contain.

       1   Executable programs or shell commands
       2   System calls (functions provided by the kernel)
       3   Library calls (functions within program libraries)
       4   Special files (usually found in /dev)
       5   File formats and conventions, e.g. /etc/passwd
       6   Games
       7   Miscellaneous (including macro packages and conventions), e.g. man(7), groff(7), man-pages(7)
       8   System administration commands (usually only for root)
       9   Kernel routines [Non standard]

apropos

apropos - search the manual page names and description

$apropos directo

ls (1)               - list directory contents
mkdir (2)            - create a directory
mkdirat (2)          - create a directory
mkdtemp (3)          - create a unique temporary directory
mkfontdir (1)        - create an index of X font files in a directory
mklost+found (8)     - create a lost+found directory on a mounted Linux second extended file system
mktemp (1)           - create a temporary file or directory
modprobe.d (5)       - Configuration directory for modprobe
mountpoint (1)       - see if a directory or file is a mountpoint
ntfsls (8)           - list directory contents on an NTFS filesystem
opendir (3)          - open a directory
pam_mkhomedir (8)    - PAM module to create users home directory
pwd (1)              - print name of current/working directory
pwdx (1)             - report current working directory of a process
readdir (2)          - read directory entry
readdir (3)          - read a directory
readdir (3am)        - directory input parser for gawk

command <tab> <tab>

Gives you options for command

for example

stat <filename>

stat - display file or file system status

SUID,SGID,STICKY BIT


SUID (4): Execute as file owner

SGID (2): Execute as group owner/inherit group

Sticky (1): Only owner can delete files

Combined Examples of SUID.SGID.STICKY BIT

Last updated