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 :: Update /etc/apt/sources.list file 
Shell :: bash loop over files with extension 
Shell :: chrome extension to safari extension 
Shell :: git stash bitbucket 
Shell :: git clone with branch name command 
Shell :: Add a Remote Repository in git command 
Shell :: ERROR: no matching manifest for linux/arm64/v8 in the manifest list entries 
Shell :: EDIT WSL2 terminal user% 
Shell :: bash script template linux 
Shell :: quit nano 
Shell :: boot linux from dos 
Shell :: Why github ask me username/password instead of SSH authentication? 
Shell :: save terminal output to file with script 
Shell :: How do I save terminal output to a file? 
Shell :: git bring back deleted branch from local 
Shell :: visual studio 2022 cannot install nuget package 
Shell :: nextjs cli 
Shell :: how to save curl output to a file 
Shell :: Install GitLab using Docker Engine 
Shell :: how to update git password in windows 
Shell :: update centos kernel version yum 
Shell :: export function in shell script 
Shell :: add a file to repository git 
Shell :: git pull and git fetch 
Shell :: how to uninstall a package in react 
Shell :: How do I use combination of head and tail commands in LINUX in order to print few lines of code 
Shell :: npm -g yarn 
Shell :: popular git command 
Shell :: k8s taint 
Shell :: vim repeat last command vim vi 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =