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 :: bluetooth keep restarting ubuntu 
Shell :: pytesseract 
Shell :: lollypop music player install ubuntu 
Shell :: How to create a new repository on the command line. 
Shell :: node-gyp error on windows 10 
Shell :: getting a package in colab from github 
Shell :: update manjaro system 
Shell :: git ubuntu store credential 
Shell :: ubunutu stats top menu bar 
Shell :: ssh-keygen rsa 
Shell :: git diff with vimdiff 
Shell :: install mongodb on m1 
Shell :: cat /etc/os-release 
Shell :: compress video ffmpeg 
Shell :: apt install postgres client 
Shell :: windows 10 startup folder 
Shell :: install arronax 
Shell :: installing git on ec2 
Shell :: how to create a bash script 
Shell :: install dirsearch 
Shell :: setup git on linux 
Shell :: git update using git bash 
Shell :: yarn test only one file 
Shell :: install openssh server linux 
Shell :: brew apps list 
Shell :: linux generate csr 
Shell :: linux find text in pdf file 
Shell :: git find files with conflicts, list files with conflict 
Shell :: linux view kernel version 
Shell :: uppercase first str bash 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =