Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

get script dir bash

SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
Comment

script dir bash

#!/bin/bash

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
Comment

PREVIOUS NEXT
Code Example
Shell :: change process name pm2 
Shell :: certbot get new certificate apache 
Shell :: how completely remove kde 
Shell :: install ssh-copy-id 
Shell :: mui version check 
Shell :: is linux bad 
Shell :: batch substring 
Shell :: base64 decode in powershell 
Shell :: yarn install uuid 
Shell :: git discard local changes 
Shell :: Install "repo" 
Shell :: which desktop environment is runnings 
Shell :: ubuntu install nginx 
Shell :: how to Install nodejs on a chromebook 
Shell :: check postgres process in mac 
Shell :: how to get hostname on linux 
Shell :: rar unrar mac 
Shell :: zsh: command not found: brew 
Shell :: du -sh sort size 
Shell :: git sync local branch with remote 
Shell :: xcode clean derived data command line 
Shell :: assign default value in shell script 
Shell :: docker remove all exited containers 
Shell :: remove netbeans linux 
Shell :: Unable to connect to libvirt qemu:///system. 
Shell :: download ganache cli for windows 
Shell :: permission denied bash 
Shell :: macbook ubuntu webcam 
Shell :: fatal: The current branch master has multiple upstream branches, refusing to push. 
Shell :: amend last commit message 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =