Forrest logo
back to context overview

sh

List of commands for sh:

  • sh:ai:e8adc sh -c /bin/bash -c 'services=`systemctl -t service -t socket --full --all list-units | grep -E "\.service|\.socket" | awk "{print $1;}"`; for service in $services; do systemctl is-enabled $service &> /dev/null; if [ $? -eq 0 ]; then echo "$service" | sed "s/\.service//" | sed "s/\.socket//"; fi done'
    $ sh -c /bin/bash -c 'services=`systemctl -t service -t socket --full --all list-units | grep -E "\.service|\.socket" | awk "{print $1;}"`; for service in $services; do systemctl is-enabled $service &> /dev/null; if ${ $? -eq 0 }; then echo "$service" | sed "s/\.service//" | sed "s/\.socket//"; fi done'
    try on your machine
    explain this command
  • sh:tldr:0c8b2 sh: Execute a script.
    $ sh ${path-to-script-sh}
    try on your machine
    explain this command
  • sh:tldr:1e0e4 sh: Execute a command and then exit.
    $ sh -c "${command}"
    try on your machine
    explain this command
  • sh:tldr:4549c sh: Read and execute commands from `stdin`.
    $ sh -s
    try on your machine
    explain this command
  • sh:tldr:77cbc sh: Start an interactive shell session.
    $ sh
    try on your machine
    explain this command
back to context overview