Tag: shell

  • Command to suspend a GNU Bash shell

    ABOUT suspend Suspend the execution of this shell until it receives a SIGCONT signal. [bash] $suspend ^C^C |^Z [/bash] [bash] $kill -18 5139 $ [/bash] [bash] $suspend ^C^C |^Z $ [/bash] LINK https://ss64.com/bash/suspend.html

  • finding source code or source file of a typical bash function

    $type -a signals bash: type: signals: not found $type -a _signals _signals is a function _signals () { local -a sigs=($( compgen -P “$1” -A signal “SIG${cur#$1}” )); COMPREPLY+=(“${sigs[@]/#${1}SIG/${1}}”) } $declare -F _signals _signals $shopt -s extdebug $declare -F _signals _signals 862 /usr/share/bash-completion/bash_completion $declare -F _command _command 1732 /usr/share/bash-completion/bash_completion $declare -F compgen $declare -F _grub_dirs…

  • Hacking with the quote command on Bash shell

    ABOUT Quoting Quoting is used to remove the special meaning of certain characters or words to the shell. Quoting can be used to disable special treatment for special characters, to prevent reserved words from being recognized as such, and to prevent parameter expansion. Each of the shell metacharacters (*note Definitions::) has special meaning to the…

  • Bash Shell command : file

    this tutorial content may not be accurate

  • Shell Scripting Tutorial : View System Date, Calender

    this tutorial content may not be accurate

  • Erlang Tinkering

    ABOUT ERLANG Erlang (/ˈɜːrlæŋ/ UR-lang) is a general-purpose, concurrent, functional programming language, as well as a garbage-collected runtime system. The term Erlang is used interchangeably with Erlang/OTP, or OTP, which consists of the Erlang runtime system, a number of ready-to-use components mainly written in Erlang, and a set of design principles for Erlang programs.[3] The…

  • Hacking with the Erlang Emulator

    The erl program starts an Erlang runtime system. The exact details (for example, whether erl is a script or a program and which other programs it calls) are system-dependent. commandline session $erl Erlang R15B01 (erts-5.9.1) [64-bit] [async-threads:0] [kernel-poll:false] Eshell V5.9.1 (abort with ^G) 1> b(). ok 2> double = fun(value) -> 2*value end. ** exception…

  • How does && and || operators combination Work ?

    commandline session $ 4.2.29 10 510—> [ -f wordmatc.c ] || echo hello hello $ 4.2.29 11 511—> [ -f wordmatc.c ] || cat baty && echo hello cat: baty: No such file or directory $ 4.2.29 12 512—> [ -f wordmatc.c ] && echo hello || echo kitten kitten $ 4.2.29 13 513—> […

  • Hacking with ls options ( -S -1 -r)

    GNU Command $> a1.txt $a > a2.txt bash: a: command not found $echo a > a2.txt $ls -S a2.txt a1.txt $ls -S -1 a2.txt a1.txt $ls -r -S -1 a1.txt a2.txt $ UNIX Explanation -S sort by file size -1 list one file per line -r, –reverse reverse order while sorting computer science Theory Drop…