|
|
10.5: Restore Terminal's welcome message
For those of you that hate vi, you could do
If you are going to be playing in terminal then you really want to set up your profile, e.g., .profile or .bash_profile.
Commenter #1 - use a lowercase w; that is, :w and :q --or-- simply :wq. vi commands are case-sensitive. Thanks for the tip and info about alternative editors.
I believe you mean echo
cat will read a file by that name (and fail). echo is the command you're looking for.
That was cat redirect
No, mountainbiker is correct. Notice the
> in that line. That takes the standard in and writes it to a file.
That was cat redirect
Nope. Give it a try. He definitely meant echo.
Yepper ... echo (instead of cat)
My bad -- use echo:
sudo echo "I love vi and Unix!" > /etc/motd
* and maybe more coffee ... assuming you have coffee on your file system -LOL ZZ
Or ZZ
Or you can save and quit from vi by pressing escape followed by ZZ (two upper-case Zs). |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.37 seconds |
|