Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

present working directory in shell script

#!/bin/bash
echo "Script executed from: ${PWD}"

BASEDIR=$(dirname $0)
echo "Script location: ${BASEDIR}"
Comment

present working directory in linux

pwd
#use this command in linux shell to see the present working directory
Comment

PREVIOUS NEXT
Code Example
Shell :: ubuntu activate bluetooth 
Shell :: composer install global 
Shell :: renaming a docker container 
Shell :: count number of files in directory linux 
Shell :: install oh my zsh ubuntu 
Shell :: setup git in ubuntu 
Shell :: mac terminal hide username 
Shell :: how to check jenkins version in ubuntu 
Shell :: push all branches to remote 
Shell :: downgrade cocoapods in mac m1 
Shell :: gcloud switch projects 
Shell :: generate pfx certificate 
Shell :: how to reset back to commit id in git 
Shell :: download nodejs ubuntu linux 
Shell :: how to remove a directory in git 
Shell :: revert local commit 
Shell :: linux show uid 
Shell :: prolog how to run 
Shell :: find a file in linux terminal 
Shell :: How to install rambox on linux 
Shell :: docker prune -a 
Shell :: fetching a forked branch 
Shell :: disable password ssh login 
Shell :: epson l220 ubuntu driver 
Shell :: global configuration git 
Shell :: how to change my git default editor to vs code 
Shell :: linux bash script to clean up log files 
Shell :: git remote origin 
Shell :: install csv 
Shell :: *** WARNING : deprecated key derivation used 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =