Index
A
- -amin parameter / Search on up file times
- -atime parameter / Search on up file times
- access event / How it works...
- active user hours, on system
- determining / Finding out active user hours on a system, How to do it…, How it works…
- addgroup command
- about / How it works…
- alias command
- about / Escaping aliases
- aliases
- visiting / Visiting aliases
- apropos
- about / How to do it...
- archive
- files, appending to / Appending files to an archive
- folders, extracing from / Extracting files and folders from an archive
- files, extracing from / Extracting files and folders from an archive
- files, deleting from / Deleting files from archive
- archiving
- about / Introduction
- arguments
- about / How to do it...
- passing, to commands / Passing arguments to commands
- negating / Negating arguments
- arithmetic operations
- array indexes
- listing / Listing of array indexes
- arrays
- about / Arrays and associative arrays
- aspell command
- aspell list command
- about / How it works...
- associative arrays
- about / Getting ready, Defining associative arrays
- attrib event / How it works...
- automated FTP transfer
- about / Automated FTP transfer
- awk command
- about / Introduction, Basic awk primer
- working / How it works..., How it works…
- example / How it works…
- special variables / Special variables
- for loop, using / Using loop inside awk
- string manipulation functionsTopicnawk commandstring manipulation functionsabout / Using loop inside awk
- string manipulation functionsTopicnawk commandstring manipulation functionslength() / Using loop inside awk
- string manipulation functionsTopicnawk commandstring manipulation functionsindex() / Using loop inside awk
- string manipulation functionsTopicnawk commandstring manipulation functionssplit() / Using loop inside awk
- string manipulation functionsTopicnawk commandstring manipulation functionssubstr() / Using loop inside awk
- string manipulation functionsTopicnawk commandstring manipulation functionssub() / Using loop inside awk
- string manipulation functionsTopicnawk commandstring manipulation functionsgsub() / Using loop inside awk
- string manipulation functionsTopicnawk commandstring manipulation functionsmatch() / Using loop inside awk
B
- -b option / Sort according to the keys or columns
- backups
- scheduling, at regular intervals / Scheduling backups at intervals
- bandwidth limit
- specifying, on cURL / Specifying bandwidth limit on cURL
- Base64
- about / How to do it...
- Bash
- about / Introduction, Introduction
- arithmetic operations / Doing math calculations with the shell, How to do it...
- arrays / How to do it...
- associative arrays / How to do it..., Defining associative arrays
- array indexes / Listing of array indexes
- functions / How to do it...
- arguments / How to do it...
- tests / How to do it...
- mathematical comparisions / How to do it...
- filesystem related tests / How to do it...
- string comparisions / How to do it...
- text replacement techniques / Text slicing and parameter operations
- parameter expansion short hands / Text slicing and parameter operations
- MySQL database, writing from / How to do it…, How it works…
- MySQL database, reading from / How to do it…, How it works…
- Bash hackers
- about / Playing with xargs
- Bash prompt string
- BEGIN{} block
- about / How it works...
- blank files
- generating, in bulk / Generating blank files in bulk, How to do it...
- blank lines
- squeezing, in text files / Squeezing blank lines
- removing, sed command used / Removing blank lines
- Block Size (BS)
- about / How to do it...
- bootable ISO files / Hybrid ISO that boots off flash drive or hard disk
- broken links
- searching, in website / Finding broken links in a website, How it works...
- bunzip2
- about / Compressing with bunzip (bzip)
- files, compressing with / How to do it...
- additional features / Keeping input files without removing them
- bytes
- specifying, as fields / Specifying range of characters or bytes as fields
C
- %C parameter / How to do it...
- %c parameter / How to do it...
- --complement option / How to do it...
- -cmin parameter / Search on up file times
- -ctime parameter / Search on up file times
- case
- ignoring, of pattern / Ignoring case of pattern
- cat command
- about / Concatenating with cat, Getting ready
- file content, concatenating with / How to do it...
- syntax / How to do it...
- usage techniques / How it works…
- options, for viewing files / Squeezing blank lines, Displaying tabs as ^I
- cd command
- cdrecord command
- about / Burning an ISO from command line
- CD Rom tray
- playing with / Playing with CD Rom tray
- chage command
- about / How it works…
- character classes, tr command
- about / Character classes
- alnum / Character classes
- alpha / Character classes
- cntrl / Character classes
- digit / Character classes
- graph / Character classes
- lower / Character classes
- print / Character classes
- punct / Character classes
- space / Character classes
- upper / Character classes
- xdigit / Character classes
- characters
- translating, with tr command / How to do it...
- deleting, with tr command / Deleting characters using tr
- squeezing, with tr command / Squeezing characters with tr
- counting, in files / Counting number of lines, words, and characters in a file, How to do it...
- character set
- complementing / Complementing character set
- chattr
- about / Getting ready
- checksum
- about / Checksum and verification, Getting ready
- benefits / Checksum and verification
- calculating, for dircetories / Checksum for directories
- checksum verification
- about / How it works...
- chmod command
- about / How to do it...
- permissions, setting for files / How to do it...
- chown command
- file ownership, modifying / Changing ownership
- about / Changing ownership
- chsh command
- about / How it works…
- close event / How it works...
- cmd parameter / How to do it...
- coloured output
- producing, on terminal / Printing colored output
- columns
- multiple files, merging as / Merging multiple files as columns, How to do it...
- command-line navigation
- performing, popd command used / Fast command-line navigation using pushd and popd, How to do it..., Most frequently used directory switching
- performing, pushd command used / Fast command-line navigation using pushd and popd, How to do it..., Most frequently used directory switching
- command-line Twitter client
- writing / How to do it..., How it works...
- command-line utilities
- interactive input, automating for / Automating interactive input, How it works…
- command line interface (CLI) / Fast command-line navigation using pushd and popd
- command output
- reading, from awk / Reading command output from awk
- command outputs
- monitoring, watch command used / Monitoring command outputs with watch, How to do it...
- commands
- about / Introduction, Introduction
- return value, obtaining / Reading command return value (status)
- arguments, passing to / Passing arguments to commands
- executing, with find / Executing commands or actions with find
- running, on remote host with SSH / Getting ready, How to do it...
- comm command
- about / Getting ready, How it works...
- comm parameter / How to do it...
- compression
- about / Introduction
- compress parameter / How to do it...
- Content-length parameter / Printing response headers excluding data
- context-based printing
- convert command
- about / Getting ready
- cookies
- using, with cURL / Cookies with cURL
- cpio
- about / Archiving with cpio
- files, archiving with / How to do it...
- using / How to do it...
- CPU
- CPU consuming process
- create 0600 root root parameter / How to do it...
- create event / How it works...
- cron
- scheduling with / Scheduling with cron, How to do it…
- cron jobs
- about / How to do it…
- cron table
- removing / Removing the cron table
- crypt command
- about / How to do it...
- cryptographic tools
- about / Cryptographic tools and hashes
- crypt / How to do it...
- gpg / How to do it...
- Base64 / How to do it...
- md5sum / How to do it...
- sha1sum / How to do it...
- salted hash / How to do it...
- csplit utility
- CSV data
- about / Getting ready
- cURL
- about / Using cURL for download, A primer on cURL
- used, for downloading / Using cURL for download
- working / How to do it…
- advanced resume download features / Continue/Resume downloading
- referer string, setting with / Set referer string with cURL
- cookies, using with / Cookies with cURL
- user agent string, setting with / Setting a user agent string with cURL
- bandwidth limit, specifying on / Specifying bandwidth limit on cURL
- maximum download size, specifying for / Specifying the maximum download size
- FTP authentication, performing with / Authenticating with cURL
- HTTP authentication, performing with / Authenticating with cURL
- data, posting in / POST in curl
- current shell
- displaying / Identifying the current shell
- cut command
- files, column-wise cutting / Column-wise cutting of a file with cut, How to do it...
- about / Getting ready
D
- %D parameter / How to do it...
- --date option
- about / How to do it...
- -d argument / How to do it...
- -delete flag
- -delete option / Deleting files from archive
- -dest parameter / How it works…
- -d option
- -dump flag / How to do it...
- /dev/pts directory
- about / How it works...
- /dev/zero / How to do it...
- data
- parsing, from website / Parsing data from a website, How it works...
- posting, to web page / How to do it...
- posting, in cURL / POST in curl
- posting, wget command used / POST data using wget
- redirecting, into stdin / Redirecting data into stdin of remote host shell commands
- data items
- locating / Searching and mining "text" inside a file with grep, How to do it...
- searching, grep command used / Searching and mining "text" inside a file with grep, How to do it...
- mining, grep command used / Searching and mining "text" inside a file with grep, How to do it...
- date command / How it works…
- date format strings
- about / How to do it...
- dates
- working with / Getting, setting dates, and delays, How to do it...
- dd command
- about / How to do it..., Getting ready
- large size file, creating with given size / How to do it...
- example / How to do it...
- working / How to do it...
- syntax / How to do it...
- disks, cloning with / How to do it...
- hard drive, cloning with / How to do it...
- debugging
- about / Debugging the script
- default gateway
- define*WORD query / define utility with Web backend
- define utility
- writing / How to do it..., How it works...
- delay
- producing, in scripts / Producing delays in a script
- delete event / How it works...
- delgroup command
- about / How it works…
- delimiter
- setting, for fields / Setting delimiter for fields
- deluser command
- about / How it works…
- df command / Getting ready
- dictionary files
- about / How to do it...
- using / How to do it...
- diff command
- about / How to do it..., Generating diff against directories, Getting ready
- generating, against directories / Generating diff against directories
- difference operation
- about / Getting ready
- dir command
- about / Getting ready
- directories
- checksum, calculating for / Checksum for directories
- creating, for long path / Making directories for a long path, How to do it...
- listing / Listing only directories – alternative methods, How to do it...
- directory depth based search / Search based on the directory depth
- directory tree
- printing / Printing directory tree
- disks
- cloning, with dd command / How to do it...
- disk space
- about / Disk usage hacks
- disk usage
- calculating / Getting ready
- displaying, in KB, MB, or GB / Displaying disk usage in KB, MB, or Blocks
- grand total sum, displaying / Displaying the grand total sum of disk usage
- files, printing in specified units / Printing files in specified units, Excluding files from disk usage calculation
- files, excluding / Excluding files from disk usage calculation, How to do it...
- large-size files, searching from directory / Finding the 10 largest size files from a given directory
- disk free information / Disk free information
- disk usage, of remote machines
- monitoring / Remote disk usage health monitor, How to do it…, How it works…
- DNS
- DNS lookup
- with fping command / DNS lookup with fping
- du command / Getting ready
- duplicate files
- about / Finding and deleting duplicate files
- searching / How to do it..., How it works...
- deleting / How to do it..., How it works...
E
- %E parameter / How to do it...
- --exclude [PATTEN] / Excluding a set of files from archiving
- -echo option / How to do it...
- -exec parameter / Executing commands or actions with find
- -ext parameter / How it works…
- e-mail address
- parsing, from text / Parsing e-mail addresses and URLs from text, How it works...
- echo command
- about / How to do it..., How it works…
- newline, escaping in / Escaping newline in echo
- echo packet count
- limiting / Limiting number of packets to be sent
- egrep command / How it works…
- egrepregex pattern / How to do it...
- encryption
- about / Introduction
- END{} block
- about / How it works...
- environment variables
- about / Playing with variables and environment variables
- displaying, for process / Showing environment variables for a process
- specifying / Specifying environment variables, Viewing the cron table
- env variable / How to do it...
- epoch
- about / How to do it...
- Ethernet
- about / Setting up an Ethernet and wireless LAN with script
- setting up / How to do it..., How it works...
- etime parameter / How to do it...
- euid parameter / How to do it...
- executable
- running, as different user / Running an executable as a different user (setuid)
- execution time, for command
- calculating / Calculating execution time for a command, How to do it...
- expect command
- about / How it works…
- expect package
- about / Automating with expect
F
- fields
- delimiters, setting for / Setting delimiter for fields
- file
- downloading / Downloading from a web page, How to do it...
- file command
- about / Getting ready, How to do it...
- file content
- concatenating, with cat command / How to do it...
- file descriptors
- about / Playing with file descriptors and redirection, Custom file descriptors
- stdin / Playing with file descriptors and redirection, How to do it...
- stdout / Playing with file descriptors and redirection, How to do it...
- stderr / Playing with file descriptors and redirection, How to do it...
- redirecting with / How to do it...
- filename-based search
- filename prefix
- specifying, for split files / Specifying filename prefix for the split files
- file names
- slicing, based on extension / Slicing filenames based on extension, How it works..
- file ownership
- file permissions
- files
- listing / How to do it...
- searching / How to do it...
- matching, based on ownership / Match based on the file permissions and ownership
- matching, based on file permissions / Match based on the file permissions and ownership
- splitting / Splitting files and data
- renaming / Renaming and moving files in bulk, Getting ready, How it works…
- moving, in bulk / Renaming and moving files in bulk, How it works…
- about / Introduction
- generating, with random data / Generating files of any size, How to do it...
- large size file, creating with given size / How to do it...
- permissions / Getting ready
- ownership, modifying / Changing ownership
- making, immutable / Making files immutable, Getting ready
- characters, counting in / Counting number of lines, words, and characters in a file, How to do it...
- lines, counting in / Counting number of lines, words, and characters in a file, How to do it...
- words, counting in / Counting number of lines, words, and characters in a file, How to do it...
- searching, recursively / Recursively search many files
- column-wise cutting, cut command used / Column-wise cutting of a file with cut, How to do it...
- frequency of words, detecting in / Frequency of words used in a given file, How it works...
- iteration, through characters / Iterating through lines, words, and characters in a file, How to do it...
- iteration, through words / Iterating through lines, words, and characters in a file, How to do it...
- iteration, through lines / Iterating through lines, words, and characters in a file, How to do it...
- archiving, with tar command / How to do it...
- appending, to archive / Appending files to an archive
- extracing, from archive / Extracting files and folders from an archive
- updating, with timestamp check / Updating files in an archive with timestamp check
- deleting, from archive / Deleting files from archive
- excluding, from archiving / Excluding a set of files from archiving
- archiving, with cpio / How to do it...
- compressing, with gzip / How to do it...
- compressing, with bunzip2 / How to do it...
- compressing, with lzma / How to do it...
- compressing, with zip / How to do it...
- archiving, with zip / How to do it...
- transferring / Transferring files
- files, archiving
- with tar command / How to do it...
- with cpio / How to do it...
- with zip / How to do it...
- files, compressing
- with gzip / How to do it...
- with bunzip2 / How to do it...
- with lzma / How to do it...
- with zip / How to do it...
- files, in archive
- comparing, with files in filesystem / Comparing files in archive and file system
- file sharing
- about / Transferring files
- file size based search / Search based on file size
- files ownership
- modifying, chown command used / Changing ownership
- files timestamp based search / Search on up file times
- filesystem related tests, Bash / How to do it...
- file type based search / Search based on file type
- file type statistics
- enumerating / Enumerating file type statistics, How it works...
- find command
- about / Introduction, Finding files and file listing, Getting ready, How it works...
- example / How to do it...
- finger USER command
- about / How it works…
- first ten lines
- printing, example / head and tail – printing the last or first 10 lines
- flow control
- about / Comparisons and tests
- folders
- extracting, from archive / Extracting files and folders from an archive
- fork bomb
- about / Recursive function
- for loop
- about / How to do it...
- format
- converting, for images / Bulk image resizing and format conversion, How to do it.., How it works…
- formatted arguments
- passing, to command by reading stdin / Passing formatted arguments to a command by reading stdin
- formatted plain text
- web page, downloading as / How to do it...
- fping command
- about / There's more...
- DNS lookup / DNS lookup with fping
- frequency of words
- detecting, in file / Frequency of words used in a given file, How it works...
- Frequency parameter / How it works...
- frequently-used commands
- FTP
- about / How to do it...
- FTP authentication
- performing, cURL used / Authenticating with cURL
- ftp command
- about / Automated FTP transfer
- functions
- about / How to do it...
- recursive function / Recursive function
- exporting / Exporting functions
G
- getline
- line, reading explicitly / Reading a line explicitly using getline
- GET request
- Git
- about / Version control based backup with Git
- used, for version control based backup / Getting ready, How to do it...
- Gmail
- Gmail mail
- accessing, from command line / How to do it..., How it works...
- GNU/Linux ecosystem
- about / Introduction
- gpg
- about / How to do it...
- grep command
- about / Introduction, How to do it..., Getting ready, Getting ready
- data items, mining / Searching and mining "text" inside a file with grep, How to do it...
- data items, searching in file / Searching and mining "text" inside a file with grep, How to do it...
- files, including for search / Include and exclude files (wild card pattern) in grep search
- files, excluding for search / Include and exclude files (wild card pattern) in grep search
- using, with xargs / Using grep with xargs with zero-byte suffix
- quiet condition / Silent output for grep
- group
- about / Getting ready
- group permissions / Getting ready
- gzip
- about / Compressing with gunzip (gzip)
- files, compressing with / How to do it...
- using, with tarballs / Gzip with tarball
- additional features / Gzip with tarball
- gzipped files
- reading, without extracting / zcat – reading gzipped files without extracting
- gzipped tarballs
- creating / Gzip with tarball
H
- hard drive
- cloning, with dd command / How to do it...
- head command
- about / How to do it..., How to do it...
- example / How to do it...
- implementing, with awk / Implementing head, tail, and tac with awk, How it works...
- host command / Getting started
- HTML album page
- generating / How to do it..., How it works...
- HTML response
- reading, from website / How to do it...
- HTTP authentication
- performing, cURL used / Authenticating with cURL
- hyperlinks
- about / How it works...
I
- -iname option / Search based on file name or regular expression match
- -iregex option / Search based on file name or regular expression match
- <img> tag / Web photo album generator
- ICMP
- about / How to do it...
- ifconfig command
- about / How to do it...
- image crawlers
- image downloader script
- about / How it works...
- image files
- mounting / Mounting image files
- Imagemagick
- about / Getting ready
- images
- format, converting / Bulk image resizing and format conversion, How to do it.., How it works…
- resizing / Bulk image resizing and format conversion, How to do it.., How it works…
- incremental backups
- information
- obtaining, about terminal / Grabbing information about terminal, How to do it...
- gathering, through processes / Getting ready, How to do it...
- inotify-tools package / Getting ready
- inotifywait command / Getting ready
- interactive input
- automating, for command-line utilities / Automating interactive input, How it works…
- Internal Field Separator (IFS)
- intersection operation
- performing, on text files / Intersection and set difference (A-B) on text files, How to do it...
- about / Getting ready
- intruder detection script
- writing / How to do it…
- intruders
- intrusion detection system
- designing / Monitoring user logins to find intruders
- IP address
- matching / How it works...
- displaying / Assigning and displaying IP addresses
- assigning / Assigning and displaying IP addresses
- about / Name server and DNS (Domain Name Service)
- ISO files
- about / Mounting ISO files as loopback
- isohybrid command
- ISO image
- about / Creating ISO files, Hybrid ISO
- creating / How to do it...
- iwconfig utility / Getting ready, How it works...
- iwlist utility
- about / Getting ready, How it works...
J
- JavaScript
- about / Compressing or decompressing JavaScript
- decompressing / How to do it..., How it works...
- compressing / How to do it..., How it works...
K
- %k parameter / How to do it...
- %K parameter / How to do it...
- -k option / Sort according to the keys or columns
- killall command
- about / kill family of commands
- kill command
- using / Getting ready
- about / kill family of commands
L
- --limit-rate argument / Restricted with speed downloads
- Last-Modified parameter / Printing response headers excluding data
- lastb command / How to do it...
- last command / How to do it...
- last ten lines
- printing, example / head and tail – printing the last or first 10 lines
- let command
- about / How to do it...
- lftp command
- about / Automated FTP transfer
- lines
- counting, in files / Counting number of lines, words, and characters in a file, How to do it...
- filtering / Filtering lines processed by awk with filter patterns
- printing, in reverse order / Printing lines in the reverse order, How to do it...
- printing, after pattern / Printing n lines before or after a pattern in a file, How to do it...
- printing, before pattern / Printing n lines before or after a pattern in a file, How to do it...
- load average
- about / How to do it...
- LOC (Lines of Code) / Counting number of lines, words, and characters in a file
- local mount point
- remote driver, mounting / Mounting a remote drive at a local mount point
- log events
- access / How it works...
- modify / How it works...
- attrib / How it works...
- move / How it works...
- create / How it works...
- open / How it works...
- close / How it works...
- delete / How it works...
- logfiles
- managing, logrotate command used / Logfile management with logrotate, How to do it...
- about / Logfile management with logrotate
- logfiles, in Linux
- /var/log/boot.log / Getting ready
- /var/log/httpd / Getting ready
- /var/log/messages / Getting ready
- /var/log/auth.log / Getting ready
- /var/log/dmesg / Getting ready
- /var/log/mail.log / Getting ready
- /var/log/Xorg.0.log / Getting ready
- logging information
- with syslog / Logging with syslog, How to do it...
- logrotate command
- about / Getting ready
- logrotate configuration file
- missingok parameter / How to do it...
- notifempty parameter / How to do it...
- size 30k parameter / How to do it...
- compress parameter / How to do it...
- weekly parameter / How to do it...
- rotate 5 parameter / How to do it...
- create 0600 root root parameter / How to do it...
- loopback filesystems
- about / Loopback files and mounting
- ls -l command
- about / Getting ready
- Lynx
- lzma
- about / Compressing with lzma
- files, compressing with / How to do it...
- additional features / Extracting an lzma tarball, Compression ratio
- lzma tarball
- extracting / Extracting an lzma tarball
M
- --mirror option / Copying a complete website (mirroring)
- -max-filesize option / Specifying the maximum download size
- -maxdepth parameter / Search based on the directory depth
- -mindepth parameter / Search based on the directory depth
- -mmin parameter / Search on up file times
- -mtime parameter / Search on up file times
- MAC address
- spoofing / Spoofing Hardware Address (MAC Address)
- machine information
- machines
- availability, verifying / Listing all the machines alive on a network, How it works...
- matched sentence
- matched string notation (&)
- about / Matched string notation (
- mathematical comparisions, Bash / How to do it...
- md5sum
- about / How to do it..., How it works..., How to do it...
- syntax / How it works...
- messages
- sending, to user terminals / Sending messages to user terminals, How to do it..., How it works...
- meta characters
- about / How to do it...
- \b / How to do it...
- \B / How to do it...
- \d / How to do it...
- \D / How to do it...
- \w / How to do it...
- \W / How to do it...
- \n / How to do it...
- \s / How to do it...
- \S / How to do it...
- \r / How to do it...
- missingok parameter / How to do it...
- mkdir command
- about / Getting ready
- example / Getting ready
- mkfs command
- about / How to do it...
- mkisofs command
- about / How to do it...
- modify event / How it works...
- monitoring script
- writing, for collecting details from remote machines / Remote disk usage health monitor, How to do it…, How it works…
- mount command
- mount point
- about / Mounting ISO files as loopback
- move event / How it works...
- multiple commands
- combining / Getting ready
- multiple expressions
- combining / Combination of multiple expressions
- multiple files
- merging, as columns / Merging multiple files as columns, How to do it...
- multiple patterns
- specifying, for matching / grep by matching multiple patterns
- multiple tar files
- merging / Concatenating two archives
- MX (Mail Exchanger)
- about / DNS lookup
- MySQL
- MySQL database
- writing, from Bash / How to do it…, How it works…
- reading, from Bash / How to do it…, How it works…
N
- -name argument / Search based on file name or regular expression match
- -newer parameter / Search on up file times
- -n flag
- about / Line numbers
- -n option
- name servers
- n characters
- reading, without pressing Return / Getting ready
- netstat command
- networking
- about / Introduction
- network interfaces
- about / How to do it...
- list, printing / Printing the list of network interfaces
- network ports
- nice parameter / How to do it...
- node
- about / Getting ready
- notifempty parameter / How to do it...
- numeric characters
- decrypting, tr command used / How it works…
- encrypting, tr command used / How it works…
O
- -O option / How to do it...
- obfuscation tool
- about / Getting ready
- open event / How it works...
- ownership
- applying, recursively to files / Applying ownership recursively
P
- %P parameter / How to do it...
- -path argument
- -percent parameter / How it works…
- -perm parameter
- -print argument
- about / How to do it...
- /proc
- palindrome strings
- verifying, with scripts / Checking palindrome strings with a script, How to do it..., Simplest and direct method, See also
- parameter expansion short hands
- parameters, time command
- %C / How to do it...
- %D / How to do it...
- %E / How to do it...
- %x / How to do it...
- %k / How to do it...
- %W / How to do it...
- %Z / How to do it...
- %P / How to do it...
- %K / How to do it...
- %w / How to do it...
- %c / How to do it...
- passwd command
- about / Getting ready, How it works…
- paste command
- about / How to do it...
- patch
- applying / How to do it...
- patch file
- pcpu parameter / How to do it...
- Perl-style regular expressions
- about / How to do it...
- permissions
- applying, recursively to files / Applying permissions recursively to files
- permission strings
- rwx------ / Getting ready
- ---rwx--- / Getting ready
- ------rwx / Getting ready
- pgrep command
- pid parameter / How to do it...
- ping command
- about / Let's ping!, How it works...
- working / How to do it...
- RTT, finding / Round trip time
- echo packet count, limiting / Limiting number of packets to be sent
- return status / Return status of ping command
- pipe operator
- about / How it works…
- pkill command
- about / kill family of commands
- pmem parameter / How to do it...
- popd command
- command-line navigation, performing / Fast command-line navigation using pushd and popd, How to do it..., Most frequently used directory switching
- about / Getting ready
- pop window
- sending, with custom messages / Multi-casting window messages on a network, How to do it...
- POSIX character class
- about / How to do it...
- POSIX classes
- [*alnum*] / How to do it...
- [*alpha*] / How to do it...
- [*blank*] / How to do it...
- [*digit*] / How to do it...
- [*lower*] / How to do it...
- [*upper*] / How to do it...
- [*punct*] / How to do it...
- [*space*] / How to do it...
- POST request
- ppid parameter / How to do it...
- printf command / How to do it...
- process
- about / Gathering information about processes
- information, gathering through / Getting ready, How to do it...
- environment variables, displaying for / Showing environment variables for a process
- termination / Killing processes and send or respond to signals
- process ID
- about / Gathering information about processes
- searching / Finding process ID when given command names
- process manipulation commands
- about / There's more...
- process threads
- ps -eocomm,pcpu / How it works...
- ps command / Getting ready
- about / How to do it...
- parameters / How to do it...
- output, sorting / Sorting ps output with respect to a parameter
- filtering with / Filters with ps for real user or ID, effective user or ID
- TTY filter / TTY filter for ps
- pushd command
- command-line navigation, performing / Fast command-line navigation using pushd and popd, How to do it..., Most frequently used directory switching
- about / Getting ready
- pwd command
Q
- --quota argument / Restricted with speed downloads
- quiet mode / Silent output for grep
R
- $RANDOM environment variable
- about / How to do it...
- -regex argument
- -R option / Applying permissions recursively to files
- -r option / Sort according to the keys or columns
- random data
- files, generating with / Generating files of any size, How to do it...
- range of characters
- specifying, as fields / Specifying range of characters or bytes as fields
- rcp
- about / SCP (Secure Copy)
- read command
- real time
- about / How to do it...
- recursive function
- about / Recursive function
- redirection
- using / Redirection from file to command
- referer string
- setting, with cURL / Set referer string with cURL
- referrer string
- about / Set referer string with cURL
- regular expressions
- about / Search based on file name or regular expression match, Basic regular expression primer
- examples / Getting ready, How to do it...
- components / How to do it...
- special characters / Treatment of special characters
- regular expressions, components
- ^ / How to do it...
- $ / How to do it...
- . / How to do it...
- [] / How to do it...
- [^] / How to do it...
- [-] / How to do it...
- ? / How to do it...
- + / How to do it...
- * / How to do it...
- () / How to do it...
- {n} / How to do it...
- {n,} / How to do it...
- {n, m} / How to do it...
- | / How to do it...
- \ / How to do it...
- relevant columns
- relevant words
- remote drive
- mounting, at local mount point / Mounting a remote drive at a local mount point
- remote machines disk usage
- monitoring / Remote disk usage health monitor, How to do it…, How it works…
- rename command
- about / Getting ready
- response headers
- printing / Printing response headers excluding data
- rev command
- about / Simplest and direct method
- rm command
- about / How it works...
- root
- about / Introduction
- ROT13
- about / How it works…
- rotate 5 parameter / How to do it...
- route command
- about / How it works...
- routing table information
- rsync command
- about / Backup snapshots with rsync, RSYNC
- working with / How to do it...
- additional features / Excluding files while archiving with rsync, Deleting non-existent files while updating rsync backup
- RTT
- about / Round trip time
S
- --silent option / Getting ready, How to do it…
- --sort parameter / Sorting ps output with respect to a parameter
- -s option / Squeezing characters with tr
- -source parameter / How it works…
- salted hash
- about / How to do it...
- SCP
- about / SCP (Secure Copy)
- recursive copying / Recursive copying with SCP
- script
- executing, ways / Introduction
- palindrome strings, verifying with / Checking palindrome strings with a script, How to do it..., Simplest and direct method, See also
- script command
- about / Getting ready
- working / How it works...
- scripting / Introduction
- scriptreplay command
- about / Getting ready
- scripts
- delays, producing in / Producing delays in a script
- debugging / How to do it...
- search
- file name based / Search based on file name or regular expression match
- directory depth based / Search based on the directory depth
- file type based / Search based on file type
- files timestamp based / Search on up file times
- file size based / Search based on file size
- Secure Shell (SSH) connection / stdin and stdout with tar
- sed command
- about / Introduction, How to do it..., Basic sed primer, Getting ready, Getting ready, Getting ready
- options / There's more..., Substring match notation (\1)
- blank lines, removing / Removing blank lines
- set difference operation
- about / Getting ready
- set differences operation
- performing, on text files / Intersection and set difference (A-B) on text files, How to do it...
- setuid permission
- about / Getting ready, Running an executable as a different user (setuid)
- example / Getting ready
- SFTP
- about / SFTP (Secure FTP)
- SHA1
- about / How it works...
- sha1sum
- about / How to do it...
- shebang / Introduction, Shebang hack
- Shell Scripting language
- about / Introduction
- shell scripts / Introduction
- about / Introduction
- shift command
- about / How it works…
- SIGNAL argument / How to do it...
- signals
- about / Getting ready
- responding to / Getting ready, How to do it..., Capturing and responding to signals
- sending / Getting ready, How to do it...
- capturing / Capturing and responding to signals
- size 30k parameter / How to do it...
- sort command
- about / Getting ready
- usage techniques / How it works…
- sorting
- about / Sorting, unique and duplicates
- performing, according to columns / Sort according to the keys or columns
- performing, according to keys / Sort according to the keys or columns
- special characters
- about / Treatment of special characters
- using, as non-special characters / Treatment of special characters
- spell checker
- using, in scripts / How it works...
- split command
- about / There's more…
- split files
- filename prefix, specifying for / Specifying filename prefix for the split files
- squashfs file
- about / squashfs – the heavy compression filesystem
- creating / How to do it...
- mounting / How to do it...
- additional features / Excluding files while creating a squashfs file
- SSH
- about / SCP (Secure Copy), Password-less auto-login with SSH, Running commands on remote host with SSH
- working / How to do it...
- automate logins / How to do it...
- commands, running on remote host / Getting ready, How to do it...
- compression, enabling / SSH with compression
- ssh-keygen command / How to do it...
- standard filenames
- generating, for temporary data / Temporary file naming and random numbers, How it works…
- stat parameter / How to do it...
- stdin
- about / Getting ready
- using, with tar command / stdin and stdout with tar
- data, redirecting into / Redirecting data into stdin of remote host shell commands
- stdout
- using, with tar command / stdin and stdout with tar
- sticky bit
- about / Getting ready, Setting the sticky bit
- setting / Setting the sticky bit
- string
- length, calculating for / Finding length of string
- string comparisions, Bash / How to do it...
- string pattern
- generating, with uniq command / String pattern generation with uniq
- string replacement
- stty utility / Getting ready
- subdirectories
- skipping, for performance improvement / Skip specified directories from the find
- subshell
- subshell trick
- substring match notation (\1)
- about / Substring match notation (\1)
- symbolic links
- about / Getting ready
- creating / How to do it...
- syslog
- about / Logging with syslog, How to do it...
- using, for logging information / Logging with syslog, How to do it...
- system information
- gathering / Gathering system information, How to do it...
- sys time
- about / How to do it...
T
- -t flag / How to do it...
- -T option
- about / Displaying tabs as ^I
- -traversal option / Getting ready
- -type option / Search based on file type
- tabs
- displaying, as ^ character / Displaying tabs as ^I
- tac command
- implementing, with awk / Implementing head, tail, and tac with awk, How it works...
- about / How to do it...
- tail command
- about / How to do it..., How to do it...
- implementing, with awk / Implementing head, tail, and tac with awk, How it works...
- tarballs
- about / Archiving with tar, Compression with tar archive
- gzip, using with / Gzip with tarball
- tar command
- about / Archiving with tar
- arguments list / Getting ready
- files, archiving with / How to do it...
- examples / How to do it...
- additional features / Appending files to an archive, stdin and stdout with tar, Compression with tar archive, Excluding version control directories
- files, extracting from archive / Extracting files and folders from an archive
- stdout, using with / stdin and stdout with tar
- stdin, using with / stdin and stdout with tar
- tar flags / Compression with tar archive
- tee command
- about / How it works...
- tempfile command
- about / How to do it...
- temporary data
- standard filename, generating for / Temporary file naming and random numbers, How it works…
- terminal
- text, printing on / Printing in the terminal, How to do it...
- colored output, producing on / Printing colored output
- terminal session
- recording / How to do it..., How it works...
- test_function()
- about / Recursively search many files
- text
- printing, in terminal / Printing in the terminal, How to do it...
- words, matching in / How it works...
- printing, between patterns / Printing text between line numbers or patterns, How to do it...
- printing, between line numbers / Printing text between line numbers or patterns, How to do it...
- e-mail address, parsing from / Parsing e-mail addresses and URLs from text, How it works...
- URLs, parsing from / Parsing e-mail addresses and URLs from text, How it works...
- replacing, from variable / How to do it...
- text files
- blank lines, squeezing in / Squeezing blank lines
- intersection operation, performing on / Intersection and set difference (A-B) on text files, How to do it...
- set difference operation, performing on / Intersection and set difference (A-B) on text files, How to do it...
- text matching
- examples / How it works...
- text processing
- about / Introduction
- text replacement techniques
- time command
- about / How to do it...
- parameters / How to do it...
- time delays
- working with / Getting, setting dates, and delays, How to do it...
- time parameter / How to do it...
- times
- real time / How to do it...
- user time / How to do it...
- sys time / How to do it...
- timestamp check
- files, updating with / Updating files in an archive with timestamp check
- top command
- about / Getting ready, top
- touch command
- tput utility / Getting ready
- traceroute
- about / Traceroute
- example / Traceroute
- trap command
- tr command
- using / Squeezing blank lines
- about / Translating with tr
- character translations, performing with / How to do it...
- numeric characters, decrypting / How it works…
- numeric characters, encrypting / How it works…
- characters, deleting with / Deleting characters using tr
- characters, squeezing with / Squeezing characters with tr
- character classes / Character classes
- tree command
- about / Getting ready
- HTML output, generating / HTML output for tree
- TTY filter
- about / TTY filter for ps
- tty parameter / How to do it...
- Twitter
- about / Twitter command-line client
U
- -u option / How to do it...
- UID
- about / Check for super user
- umount command
- about / How to do it...
- uniq command
- usage techniques / How it works…
- about / uniq
- examples / uniq
- string pattern, generating with / String pattern generation with uniq
- UNIX
- about / Introduction
- UNIX-style architecture
- about / Introduction
- until loop
- about / How to do it...
- URLs
- parsing, from text / Parsing e-mail addresses and URLs from text, How it works...
- user
- about / Getting ready
- user accesses
- useradd command
- about / How it works…
- user administration script
- user agent string
- setting, with cURL / Setting a user agent string with cURL
- USER argument / Match based on the file permissions and ownership
- user logins
- monitoring, for intrusion detection / Monitoring user logins to find intruders, Getting started, How to do it…, How it works…
- usermod command
- about / How it works…
- user parameter / How to do it...
- user terminals
- messages, sending to / Sending messages to user terminals, How to do it..., How it works...
- user time
- about / How to do it...
V
- variables
- about / Playing with variables and environment variables, Getting ready
- assigning / How to do it...
- text, replacing from / How to do it...
- verbose / Appending files to an archive
- version control based backup
- with Git / Getting ready, How to do it...
- version control directories
- excluding / Excluding version control directories
W
- %W parameter / How to do it...
- %w parameter / How to do it...
- -wildcard argument / Excluding files while creating a squashfs file
- wait command
- about / How it works...
- wall command
- about / Getting ready
- watch command / How to do it...
- w command / How to do it...
- wc utility
- about / Getting ready
- Web
- about / Introduction
- web page
- downloading / Downloading from a web page, How to do it...
- accessing, with FTP authentication / Accessing pages with HTTP or FTP authentication
- accessing, with HTTP authentication / Accessing pages with HTTP or FTP authentication
- about / Downloading a web page as formatted plain text
- downloading, as formatted plain text / How to do it...
- data, posting to / How to do it...
- web photo album generator
- about / Web photo album generator
- website
- mirroring / Copying a complete website (mirroring)
- data, parsing from / Parsing data from a website, How it works...
- broken links, searching in / Finding broken links in a website, How it works...
- changes, tracking to / Tracking changes to a website, How to do it...
- HTML response, reading from / How to do it...
- weekly parameter / How to do it...
- WEP
- about / How it works...
- wget command
- about / Getting ready
- web page, downloading / How to do it...
- file, downloading / How to do it...
- speed limits, restricting / Restricted with speed downloads
- website, mirroring / Copying a complete website (mirroring)
- data, posting / POST data using wget
- whatis command
- about / How to do it...
- whereis command
- about / How to do it...
- which command
- about / How to do it...
- while loop
- who command / How to do it...
- wild card techniques
- about / Basic regular expression primer
- wireless LAN
- about / Setting up an Ethernet and wireless LAN with script
- setting up / How to do it..., How it works...
- words
- counting, in files / Counting number of lines, words, and characters in a file, How to do it...
- matching, in text / How it works...
- about / How to do it...
X
- %x parameter / How to do it...
- -x flag / How to do it...
- xargs command
- about / Playing with xargs, Getting ready, Using grep with xargs with zero-byte suffix
- using / How to do it...
- working / How it works…
- using, with find command / Using xargs with find
- Xserver
- about / How to do it...
Z
- %Z parameter / How to do it...
- zcat command
- Zenity
- about / How to do it...
- zip
- about / Archiving and compressing with zip
- files, compressing with / How to do it...
- files, archiving with / How to do it...