Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

linux get dir of file

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

PREVIOUS NEXT
Code Example
Shell :: install node using nvm windows 
Shell :: bash check if file empty 
Shell :: git diff between local and remote branch 
Shell :: aws connect to eks cluster 
Shell :: how to install pip on linux 
Shell :: curl get example 
Shell :: find and kill the process on a specific port windows 
Shell :: docker save in windows 
Shell :: checking service status in linux 
Shell :: rc.local not running 
Shell :: add current directory to path 
Shell :: restart webmin terminal 
Shell :: create user kali linux 
Shell :: powershell to string 
Shell :: check nativescript version 
Shell :: remove cache package arch 
Shell :: git how get a list of file names changed in a commit 
Shell :: E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it? 
Shell :: httpd ssl 
Shell :: Remove all your local git branches but keep master 
Shell :: kill a process at a port 
Shell :: linux get full path 
Shell :: install vim powershell 
Shell :: edit cron jobs linux 
Shell :: gnutls_handshake() failed: An unexpected TLS packet was received. 
Shell :: ubuntu disable ssh root 
Shell :: virtual host apache 
Shell :: create a branch from main 
Shell :: git change comment 
Shell :: git show files modified since commit 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =