Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux get dir of file

dirname /home/example/foo/file.txt
# output
/home/example/foo/
Source by www.baeldung.com #
 
PREVIOUS NEXT
Tagged: #linux #dir #file
ADD COMMENT
Topic
Name
2+5 =