Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

linux get dir of file

dirname /home/example/foo/file.txt
# output
/home/example/foo/
Comment

get directory of a file linux

Signed-off-by: Dwaipayan Ray <dwaipayanray1@gmail.com>
Comment

PREVIOUS NEXT
Code Example
Shell :: install plasma kde manjaro 
Shell :: how to exit git rebase 
Shell :: drush config import single file 
Shell :: fetching a forked branch 
Shell :: visual studio code update git password 
Shell :: install sail into existing laravel 8 project 
Shell :: add bootstrap to gatsby 
Shell :: how to cd into local machine using ubuntu subsystem 
Shell :: how to go to a folder in git bash 
Shell :: epson l220 ubuntu driver 
Shell :: how to install scoop using powershell 
Shell :: rename python3 to python 
Shell :: kill all process 
Shell :: how to change my git default editor to vs code 
Shell :: bat turn echo off 
Shell :: force pull git 
Shell :: install 7z commadn line windows 
Shell :: git ignore all files within a directory 
Shell :: centos reboot 
Shell :: read last line file bash 
Shell :: git see current commit message 
Shell :: get newest version of original in own fork 
Shell :: committed to wrong branch 
Shell :: ubuntu output to file and terminal 
Shell :: git unadd all files 
Shell :: uninstall all requirements 
Shell :: git change commit 
Shell :: createa. branch off of development git 
Shell :: how to install spotify in linux 
Shell :: how to take a screenshot gnome 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =