ABOUT compgen compgen is bash built-in command and it will show all available commands, aliases, and functions for you. TYPICAL COMMANDLINE EXPOSURE RELATED [bash] $compgen -k if then else elif fi case esac for select while until do done in function time { } ! [[ ]] coproc $ $compgen -a ls $ $compgen -b …
Author Archives: jeffrin
bash builtin command named command
$pwd /home/jeffrin/upstream-kernel $tail ~/.bashrc . /usr/share/bash-completion/bash_completion elif [ -f /etc/bash_completion ]; then . /etc/bash_completion fi fi export PS1=$ function ls { pwd } $ls /home/jeffrin/upstream-kernel $command ls 0002-Testing-script-for-Intel-P-State-driver-crashes-duri.patch linux linux-kselftest linux-kselftest.bup linux-kselftest.bup2 linux-next linux.old $
caller — returns the context of any active subroutine call
$cat test.bash!/bin/bash die() { local frame=0 while caller $frame; do ((frame++)); done echo “$*” exit 1 } f1() { die “*** an error occured ***”; } f2() { f1; } f3() { f2; } f3 $ $bash test.bash 12 f1 test.bash 13 f2 test.bash 14 f3 test.bash 16 main test.bash *** an error occured *** …
Continue reading “caller — returns the context of any active subroutine call”
Typical Bash Shell bind Command Examples
https://linux.101hacks.com/unix/bind/
What is 16 bit in different contexts ?
Refers to the number of bits that can be processed or transmitted in parallel, or thenumber of bits used for single element in adata format. The term is often applied to thefollowing: microprocessor: indicates the width of theregisters. A 16-bit microprocessor can processdata and memory addresses that are representedby 16 bits. bus : indicates the …
Windows Application Programming Interface
The Windows application programming interface (API) is the user-mode system programminginterface to the Windows operating system family. Prior to the introduction of 64-bit versions ofWindows, the programming interface to the 32-bit versions of the Windows operating systems wascalled the Win32 API to distinguish it from the original 16-bit Windows API, which was the program-ming interface …
Continue reading “Windows Application Programming Interface”
Algorithms: bit manipulation
slabinfo – kernel slab allocator statistics
WHAT IS SLAB ALLOCATION ? Slab allocation is a memory management mechanism intended for the efficient memory allocation of kernel objects. It eliminates fragmentation caused by allocations and deallocations. The technique is used to retain allocated memory that contains a data object of a certain type for reuse upon subsequent allocations of objects of the …
Continue reading “slabinfo – kernel slab allocator statistics”
/dev/zero is a special file in Unix-like operating systems
Data integrity is a fundamental component of information security
https://www.veracode.com/blog/2012/05/what-is-data-integrity