View Full Version : Unix/OS X syntax question
amy.damnit
Jan 8, 2009, 12:48 PM
I am helping the Audacity team do debugging on Macs.
A developer wants me to run this:
vm_stat 10 >output.txt
How do I change this syntax so I can save the "output.txt" file in a specific location on my HDD?
Thanks,
Amy
HiRez
Jan 8, 2009, 01:04 PM
In general UNIX syntax, you just need to provide the complete path to the file, for example:
vm_stat 10 > /Users/joesixpack/documents/vmlogs/output.txt
or whatever the path is. Here it means you want to make the file in the vmlogs directory, which is under the documents directory, etc. If you use the terminal (command-line) to navigate to the location where you want the file, the pwd (present working directory) command will give you the complete path, then add on a forward slash and the file name you want.
chris200x9
Jan 8, 2009, 01:41 PM
tip
this:
~ equals home ;)
amy.damnit
Jan 8, 2009, 01:46 PM
Thanks for the reply. That is exactly what I needed!
Say, I have two non-related nebie questions...
1.) Why does MacRumors seem to log me out of the website like every 20 minutes?? :confused:
2.) Why didn't I get an e-mail telling me you responded to my original post?? :confused:
Thanks,
Amy
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.