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
macOS & iOS Developer Playground
macOS - Development and Darwin
newbie help (dumb terminal settings?)
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="masaka___" data-source="post: 21608"><p>It's cool...</p><p></p><p>Let's suppose you saved "termcap.txt" to your Desktop. Here's how</p><p>you'd copy it to the right place.</p><p></p><p>sudo cp ~/Desktop/termcap.txt /etc/termcap</p><p></p><p></p><p><strong>Explanation</strong>:</p><p></p><p>sudo is a command you use when you want to</p><p>temporarily upgrade your normal account to have</p><p>administrator (root) priveleges. Copying things</p><p>into /etc (which is where a lot of Unix programs</p><p>like to place their configuration files) is an</p><p>appropriate time to use sudo. When you execute</p><p>sudo, it'll usually ask you for your password</p><p>(so it can make sure you're not someone</p><p>malicious).</p><p></p><p>cp is Unix command to copy files, and it's</p><p>syntax is `cp SOURCE DESTINATION`. You can</p><p>specify multiple sources, but there must always</p><p>only be one destination. The destination will</p><p>usually be a directory (or folder), but if you</p><p>specify a filename (as we've done here), it'll</p><p>perform a rename operation after the copy.</p><p></p><p></p><p><strong>Summary</strong>:</p><p></p><p>sudo cp ~/Desktop/termcap.txt /etc/termcap</p><p></p><p>sudo -- temporarily give me more priveleges so that I can...</p><p></p><p>cp -- copy ~/Desktop/termcap.txt to /etc and have it be named termcap</p><p></p><p></p><p>PS: ~ means your home directory. You can say `echo ~` and it should say /Users/whomever where "whomever" is your login name.</p><p></p><p>PPS: to learn more about sudo and cp, type `man sudo` and `man cp` in your terminal.</p></blockquote><p></p>
[QUOTE="masaka___, post: 21608"] It's cool... Let's suppose you saved "termcap.txt" to your Desktop. Here's how you'd copy it to the right place. sudo cp ~/Desktop/termcap.txt /etc/termcap [B]Explanation[/B]: sudo is a command you use when you want to temporarily upgrade your normal account to have administrator (root) priveleges. Copying things into /etc (which is where a lot of Unix programs like to place their configuration files) is an appropriate time to use sudo. When you execute sudo, it'll usually ask you for your password (so it can make sure you're not someone malicious). cp is Unix command to copy files, and it's syntax is `cp SOURCE DESTINATION`. You can specify multiple sources, but there must always only be one destination. The destination will usually be a directory (or folder), but if you specify a filename (as we've done here), it'll perform a rename operation after the copy. [b]Summary[/b]: sudo cp ~/Desktop/termcap.txt /etc/termcap sudo -- temporarily give me more priveleges so that I can... cp -- copy ~/Desktop/termcap.txt to /etc and have it be named termcap PS: ~ means your home directory. You can say `echo ~` and it should say /Users/whomever where "whomever" is your login name. PPS: to learn more about sudo and cp, type `man sudo` and `man cp` in your terminal. [/QUOTE]
Verification
Name this item 🌈
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
newbie help (dumb terminal settings?)
Top