The Linux Command-er (1001+ Command Hacks) - The Linux Command-er (1001+ Command Hacks)
The Linux Command-er (1001+ Command Hacks) - The Linux Command-er (1001+ Command Hacks)
User and Group Management Commands 1 useradd Create a new user or update default new user information
2 usermod Modify a user account
3 userdel Delete a user account and related files
4 groupadd Create a new group
5 groupmod Modify a group definition on the system
6 groupdel Delete a group
Password & Group Management Commands 1 passwd Update user's authentication tokens
2 chage Change user password expiry information
3 vipw Edit the password, group, shadow-password or shadow-group file
4 vigr Edit the password, group, shadow-password or shadow-group file
Text File Viewing / Manipulation Commands 1 cat Concatenate files and print on the standard output
2 rev Reverse lines of a file or files
3 zcat Compress or expand files
4 bzcat Decompresses files to stdout
5 tac Concatenate and print files in reverse
Join lines of two files on a common field
6 join
7 more File perusal filter for crt viewing
8 zmore File perusal filter for crt viewing of compressed text
9 bzmore File perusal filter for crt viewing of bzip2 compressed text
10 less Opposite of more
11 zless File perusal filter for crt viewing of compressed text
12 bzless File perusal filter for crt viewing of bzip2 compressed text
13 head Output the first part of files
14 tail Output the last part of files
15 tee Read from standard input and write to standard output and files
16 sort Sort lines of text files
17 uniq Report or omit repeated lines
18 nl Number lines of files
19 cut Remove sections from each line of files
20 awk,gawk pattern scanning and processing language *
21 egrep print lines matching a pattern *
22 env run a program in a modified environment *
23 fgrep print lines matching a pattern *
24 findmnt find a filesystem *
25 flock manage locks from shell scripts *
26 gettext translate message *
IPTables and SELinux Commands 1 iptables Administration tool for IPv4 packet filtering and NAT
2 ip6tables IPv6 packet filter administration
3 sestatus SELinux status tool
4 seinfo SELinux policy query tool
CD / DVD Writing Commands and Programs 1 cdrecord Write data to optical disk media
2 dvdrecord Write data to optical disk media
3 wodim Write data to optical disk media
4 eject Eject removable media
Multimedia based Programs 1 mpg123 Play audio MPEG 1.0/2.0/2.5 stream (layers 1, 2 and 3)
2 mplayer Movie player
3 mencoder Movie encoder
4 ffmpeg FFmpeg video converter
5 ffmpeg2dirac Command-line converter to create Dirac and Ogg Vorbis files
6 ffmpeg2theora Command-line converter to create Dirac and Ogg Vorbis files
Memory Information Commands 1 free Display amount of free and used memory in the system
2 cat /proc/meminfo Getting Memory information from /proc filesystem
3 vmstat Report virtual memory statistics
LVM and RAID Commands 1 fsadm Utility to resize or check filesystem on a device
2 lvchange Change attributes of a logical volume
3 lvconvert Convert a logical volume from linear to mirror or snapshot
4 lvcreate Create a logical volume in an existing volume group
5 lvdisplay Display attributes of a logical volume
6 lvextend Extend the size of a logical volume
7 lvm LVM2 tools
8 lvmchange Change attributes of the logical volume manager
9 lvmconf LVM configuration modifier
10 lvmdiskscan Scan for all devices visible to LVM2
11 lvmdump Create lvm2 information dumps for diagnostic purposes
12 lvmsadc LVM system activity data collector
13 lvmsar LVM system activity reporter
14 lvreduce Reduce the size of a logical volume
15 lvremove Remove a logical volume
16 lvrename Rename a logical volume
17 lvresize Resize a logical volume
18 lvs Report information about logical volumes
19 lvscan Scan (all disks) for logical volumes
20 pvchange Change attributes of a physical volume
21 pvck Check physical volume metadata
22 pvcreate Initialize a disk or partition for use by LVM
23 pvdisplay Display attributes of a physical volume
24 pvmove Move physical extents
25 pvremove Remove a physical volume
26 pvresize Resize a disk or partition in use by LVM2
27 pvs Report information about physical volumes
28 pvscan Scan all disks for physical volumes
29 vgcfgbackup Backup volume group descriptor area
30 vgcfgrestore Restore volume group descriptor area
31 vgchange Change attributes of a volume group
32 vgck Check volume group metadata
33 vgconvert Convert volume group metadata format
34 vgcreate Create a volume group
35 vgdisplay Display attributes of volume groups
36 vgexport Make volume groups unknown to the system
37 vgextend Add physical volumes to a volume group
38 vgimport Make exported volume groups known to the system
39 vgimportclone Import and rename duplicated volume group
40 vgmerge Merge two volume groups
41 vgmknodes Recreate volume group directory and logical volume special files
42 vgreduce Reduce a volume group
43 vgremove Remove a volume group
44 vgrename Rename a volume group
45 vgs Report information about volume groups
46 vgscan Scan all disks for volume groups and rebuild caches
47 vgsplit Split a volume group into two
48 mdadm Manage MD devices aka Linux Software RAID
49 mdmon Monitor MD external metadata arrays
Samba (Windows File Sharing) Commands 1 smbpasswd Change a user´s SMB password
2 smbstatus Report on current Samba connections
3 smbclient ftp-like client to access SMB/CIFS resources on servers
4 smbcacls Set or get ACLs on an NT file or directory names
5 smbget wget-like utility for download files over SMB
6 smbprint
7 smbspool Send a print file to an SMB printer
Shell script for backing up SMB/CIFS shares directly to UNIX tape
8 smbtar drives
9 smbtree A text based smb network browser
List info about machines that respond to SMB name queries on a
10 findsmb subnet
11 nmblookup NetBIOS over TCP/IP client used to lookup NetBIOS names
12 rpcclient Tool for executing client side MS-RPC functions
13 sharesec Set or get share ACLs
14 mksmbpasswd.sh
15 eventlogadm Push records into the Samba event log store
LDAP Commands 1 ldapadd LDAP modify entry and LDAP add entry tools
2 ldap-agent SNMP agent for Directory Server
3 ldap-agent-bin -
4 ldapcompare LDAP compare tool
5 ldapdelete LDAP delete entry tool
6 ldapexop Issue LDAP extended operations
7 ldapmodify LDAP modify entry and LDAP add entry tools
8 ldapmodrdn LDAP rename entry tool
9 ldappasswd Change the password of an LDAP entry
10 ldapsearch LDAP search tool
11 ldapurl LDAP URL formatting tool
12 ldapwhoami LDAP who am i? tool
13 cert2ldap Import a certificate into an LDAP server
14 slapd Stand-alone LDAP Daemon
15 slapacl Check access to a list of attributes
16 slapadd Add entries to a SLAPD database
17 slapauth Check a list of string-represented IDs for LDAP authc/authz
18 slapcat SLAPD database to LDIF utility
19 slapd_db_archive -
20 slapd_db_checkpoint -
21 slapd_db_deadlock -
22 slapd_db_dump -
23 slapd_db_hotbackup -
24 slapd_db_load -
25 slapd_db_printlog -
26 slapd_db_recover -
27 slapd_db_sql -
28 slapd_db_stat -
29 slapd_db_upgrade -
30 slapd_db_verify -
Check a list of string-represented LDAP DNs based on schema
31 slapdn syntax
32 slapindex Reindex entries in a SLAPD database
33 slappasswd OpenLDAP password utility
34 slapschema SLAPD in-database schema checking utility
35 slaptest Check the suitability of the OpenLDAP slapd.conf file
36 ns-slapd The main Directory Server daemon
NTFS Filesystem Specific Commands 1 lowntfs-3g Third Generation Read/Write NTFS Driver
2 ntfs-3g Third Generation Read/Write NTFS Driver
3 ntfs-3g.probe Probe an NTFS volume mountability
4 ntfs-3g.secaudit NTFS Security Data Auditing
5 ntfs-3g.usermap NTFS Building a User Mapping File
6 ntfsmount Third Generation Read/Write NTFS Driver
7 mount.lowntfs-3g Third Generation Read/Write NTFS Driver
8 mount.ntfs-3g Third Generation Read/Write NTFS Driver
9 mount.ntfs-fuse Third Generation Read/Write NTFS Driver
10 ntfscat Print NTFS files and streams on the standard output
11 ntfsck
12 ntfsclone Efficiently clone, image, restore or rescue an NTFS
13 ntfscluster Identify files in a specified region of an NTFS volume
14 ntfscmp Compare two NTFS filesystems and tell the differences
15 ntfscp Copy file to an NTFS volume
16 ntfsdecrypt
17 ntfsdump_logfile
Fix common errors and force Windows to check NTFS
18 ntfsfix
19 ntfsinfo Dump a file's attributes
20 ntfslabel Display / Change the label on an ntfs file system
21 ntfsls List directory contents on an NTFS filesystem
22 ntfsmftalloc
23 ntfsmount
24 ntfsmove
25 ntfsresize Resize an NTFS filesystem without data loss
26 ntfstruncate
27 ntfsundelete Recover a deleted file from an NTFS volume
28 ntfswipe
GNU `tar' saves many files together into a single tape or disk
Archive, Backup, Restore Commands 1 tar archive, and can restore individual files from the archive
2 cpio copy files to and from archives
3 rsync A fast, versatile, remote (and local) file-copying tool
4 dump ext2/3/4 filesystem backup
5 restore Restore files or file systems from backups made with dump
6 split Split a file into pieces
GNU `tar' saves many files into a single disk archive/can restore
7 gtar files *
Compare and Difference, Patch 1 cmp Compare two files byte by byte
2 diff Compare files line by line
3 diff3 Compare three files line by line
4 sdiff Side-by-side merge of file differences
5 patch Apply a diff file to an original
Dictionary and Spell Checker 1 look Display lines beginning with a given string
2 ispell
RCS Commands 1 ci
2 co
3 ident
4 merge
5 rcs
6 rcsclean
7 rcsdiff
8 rcsfreeze
9 rcsmerge
10 rlog