Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to get last folder from path

fol=`basename $(pwd)`
echo $fol
Comment

PREVIOUS NEXT
Code Example
Shell :: how to find which options a command supports in linux 
Shell :: Heroku bash vim 
Shell :: dhcp handshake 
Shell :: delete file bash script with time and date 
Shell :: kube cluster 
Shell :: npm install only works globally eacces 
Shell :: install gasreporter 
Shell :: delete fg linux 
Shell :: git sync trunk with gh-pages branch 
Shell :: ros2 galactic build 
Shell :: jre-8u331-linux-x64.rpm 
Shell :: openfoam for ubuntu 
Shell :: how to list linux files in mb (human readable format) 
Shell :: how to run built in automated test of your project in django 
Shell :: how to do a conditional check in shell 
Shell :: kde plasma pop os 
Shell :: unzip file git bash 
Shell :: Returning Different Color Output (macOS [12.3.1] bash [5.1.16] gnu awk [5.1]) 
Shell :: bash tab adds backslash before dollar sign 
Shell :: git change oriign 
Shell :: global menu cinnamon 
Shell :: How to create a hash file and verify it 
Shell :: intellij in ununtu 
Shell :: unit gitignore default-2021.dwlt 
Shell :: Change Firewall setup 
Shell :: barryvdh dompdf file_getcontents passing null 
Shell :: -s https://raw.githubusercontent.com/nathanchance/chromeos-adb-fastboot/master/install.sh | bash 
Shell :: ring execute system commands 
Shell :: grub bootloader corrupted fedora 36 
Shell :: multipass snap 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =