Getting started
Using trap to react to signals and system events
Listing files
Aliasing
Jobs and processes
Redirection
Control structures
Using cat
Arrays
Functions
Bash Parameter Expansion
Sourcing
Find
Here documents and here strings
Quoting
Conditional Expressions
Scripting with parameters
History substitutions
Math
Scoping
Process substitution
Programmable completion
Customizing PS1
Brace Expansion
Bash Arithmetic
getopts smart positional-parameter parsing
Debugging
Pitfalls
Script shebang
Pattern matching and regular expressions
Keyboard shortcuts
Change shell
Copying with cp
Internal variables
Internal variables
Bash internal variables at a glance
HOME
etc...
FUNCNAME
PWD
HISTSIZE
IFS
OLDPWD
PATH
OSTYPE
MACHTYPE
PPID
HOSTTYPE
SECONDS
SHELLOPTS
HOSTNAME
EDITOR
BASH VERSION
BASH VERSINFO
BASH ENV
BASHPID
RANDOM
SHLVL
LINENO
GROUPS
UID
Job control
Case statement
Word splitting
Read a file
File transfer with scp
Pipelines
Managing PATH environment variable
Avoiding date using printf
Chain of commands and operations
Type of shells
true, false and commands
Color script output cross-platform
Navigating directories
Using sort
Namespace
co-processes
Typing variables
Jobs at specific types
Associative arrays
Handling the system prompt
Creating directories
File execution sequence
The cut command
Bash on Windows 10
Cut command
Splitting files
Global and local variables
Design Patterns
CGI Scripts
Select keyword
When to use eval
Networking with bash
Parallel
Grep
Strace
Sleep
Decodi
Contributors

SECONDS

suggest change

The number of seconds a script has been running. This can get quite large if shown in the shell:

~> $ echo $SECONDS
98834

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents