Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
Printing a list of file folders
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="mbohn" data-source="post: 966756" data-attributes="member: 109496"><p>Here's an example. I want to print a list of files in my home directory which is called</p><p></p><p>/Users/mark</p><p></p><p>So I enter into terminal</p><p></p><p>$ ls /Users/Mark >> ~/Documents/home.txt</p><p></p><p>(The $ is the prompt Terminal gives you to tell you it is ready for a command. The symbol ~ is shorthand for your home directory = /Users/mark)</p><p></p><p>And the file home.txt is then created in my Documents folder and looks like:</p><p></p><p>Desktop</p><p>Documents</p><p>Downloads</p><p>Library</p><p>Movies</p><p>Music</p><p>Pictures</p><p>Public</p><p>Screen shot 2009-10-30 at 7.05.54 AM.png</p><p>Sites</p><p>SketchUpDrawings</p><p>untitled folder</p></blockquote><p></p>
[QUOTE="mbohn, post: 966756, member: 109496"] Here's an example. I want to print a list of files in my home directory which is called /Users/mark So I enter into terminal $ ls /Users/Mark >> ~/Documents/home.txt (The $ is the prompt Terminal gives you to tell you it is ready for a command. The symbol ~ is shorthand for your home directory = /Users/mark) And the file home.txt is then created in my Documents folder and looks like: Desktop Documents Downloads Library Movies Music Pictures Public Screen shot 2009-10-30 at 7.05.54 AM.png Sites SketchUpDrawings untitled folder [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Printing a list of file folders
Top