Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

find current working directory bash

$ echo "$PWD"
/home/terdon
Comment

directory current in bash

result=${PWD##*/}
echo $result
Comment

PREVIOUS NEXT
Code Example
Shell :: git flow hotfix 
Shell :: ImportError: No module named alsaaudio 
Shell :: download calibre ubuntu 
Shell :: square root in bash script 
Shell :: pip install --upgrade 
Shell :: where to find zshrc mac 
Shell :: rename heroku app local 
Shell :: apache2 .htaccess not writable 
Shell :: git checkout commit 
Shell :: top port scan nmap 
Shell :: warning unprotected private key file ec2 
Shell :: install composer by cmd 
Shell :: how to check directory size in linux 
Shell :: clear teams cache powershell 
Shell :: prettier install using npm 
Shell :: keyrings arch linux 
Shell :: break line bash 
Shell :: Cannot install in Homebrew on ARM processor in Intel default prefix 
Shell :: Display your current shell name 
Shell :: how to change bash prompt color 
Shell :: Installing the virtualenv for you app 
Shell :: git checkout head 
Shell :: open current folder in explorer from cmd 
Shell :: git lfs add file 
Shell :: make shortcut folder for wamp 
Shell :: install kivy 
Shell :: linux unrar multiple files 
Shell :: how to install morgan in node js 
Shell :: choco chrome install 
Shell :: install discord 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =