Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

terminal find containing directory of file and cd to directory

$ cd `find ~ -name filename.txt -exec dirname {} ;`
Comment

PREVIOUS NEXT
Code Example
Shell :: npm instalk package from bitbucket 
Shell :: bash sleep 
Shell :: install az cli wsl 
Shell :: git create new repo in git bash/ terminal 
Shell :: windows unable to format protected usb 
Shell :: terminal mkdir and cd 
Shell :: npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-pty-prebuilt@0.7.6 install: `prebuild-install || node scripts/install.js` 
Shell :: not able to start conda navigator ubuntu 18.04 
Shell :: error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated. 
Shell :: microstack.openstack to openstack 
Shell :: tcr test commit revert 
Shell :: View Changes Before Committing in git command 
Shell :: unix rename file 
Shell :: enable vault autocomplete 
Shell :: how to change elementary os theme 
Shell :: typescript compile specific file 
Shell :: bash remove directory recursively locally and git 
Shell :: mnt d wsl 
Shell :: push a new local repository to github. 
Shell :: find command absolute path 
Shell :: firebase cli 
Shell :: kali linux time settings 
Shell :: create windows network share from command line 
Shell :: kube dashboard expose access port 
Shell :: vim replace multiple spaces with one 
Shell :: mongodb version check 
Shell :: powershell function resize image 
Shell :: magento install with composer 
Shell :: where is sudo in linux 
Shell :: install grub efi 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =