Terminal Tips and Tricks For Mac OS X
source link: https://fann.im/blog/2010/09/01/terminal-tips-and-tricks-for-mac-os-x/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Terminal Tips and Tricks For Mac OS X
Sep 1, 2010
via SuperUser:Terminal Tips and Tricks For Mac OS X
-
open . #Opens the folder you’re currently browsing in Finder.URLs, images, documents.
-
open -a Preview image.png #overriding the default program set for the filetype.
-
say “Hello there.” #text-to-speech.
-
!! #Runs the last command again; sudo !! to rerun the last command using sudo.
-
mdfind fileName #
-onlyin
for directory specified;-name
for matching file names only. -
python -m SimpleHTTPServer 8000 #Start a quick webserver from any directory.
-
qlmanage -p 2>/dev/null #alias as ql,launch quicklook on a file from the command line
Was this page helpful?
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK