- Show hidden files in Finder
- In Finder, open up your Macintosh HD folder
- Press Command+Shift+Dot
- Hidden files will become visible. Repeat step 2 to hide them again!
- Go To the parent directory
Command + Up Arrow
- Find file by name using Terminal
// Search for file 'abc.bundle' in root directory and its child directory
find / -name abc.bundle
- Show hidden files in Terminal
ls -a
- Open bash_profile in TextEdit using Terminal
touch ~/.bash_profile; open ~/.bash_profile
- Add directory to PATH variable
Open .bash_profile and then append the path to existing path. In the below example, /Users/<UserName>/Library/Python/2.7/lib/python/site-packages
is appended to existing path.
export PATH=/Users/<UserName>/Library/Python/2.7/lib/python/site-packages:$PATH
- Print the value of environment variable
Use echo
to print the value of environment variable. Below example prints the value of environment variable PATH
echo $PATH