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 :: bash read file 
Shell :: ubuntu path of saving screenshots 
Shell :: terminal rename 
Shell :: winscp zip command 
Shell :: git switch branch 
Shell :: how to go home directory in linux 
Shell :: Check path file exist 
Shell :: Deploy to AWS Terraform and Gitlab 
Shell :: bash read command examples 
Shell :: install docker 
Shell :: commit your changes 
Shell :: Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.349.1234.0) 
Shell :: fix corrupt pdf command line 
Shell :: how to unrar multiple files at once linux 
Shell :: uninstall adobe creative cloud 
Shell :: command to install any package using Pip 
Shell :: nvm github 
Shell :: ghost in the shell full movie 
Shell :: docker-compose mongodb replica - init replica 
Shell :: git subtree 
Shell :: kali linux command download 
Shell :: curl with regex 
Shell :: ubuntu terminal search command 
Shell :: Set Up Your Username and Email in Git Command 
Shell :: terraform 
Shell :: how force detached ENI 
Shell :: base64 maintain line breaks linux 
Shell :: unable to open image permission denied 
Shell :: GIT: Clone and Existing Repository 
Shell :: @ module not install webstorm vue 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =