The Terminal

F

Fomer

Guest
I would like to learn how to use the Terminal. I feel... "un-mac'ish" not knowing. Before making the switch months and months ago I knew Windows inside out. And is there any way I can "learn" the Terminal... maybe a website.Or is it of any use, really? I've been using OS X now for almost a year and I am ready to deepen my knowledge on the Terminal and more.
 
Joined
Mar 9, 2004
Messages
2,860
Reaction score
21
Points
38
Location
Miami FL
Your Mac's Specs
G4 1Ghz OS X 10.4.7
pwd shows current directory print working directory

cd (directory) changes to the desired directory ls LS lower case lists what's in the current directory ls /tmp (or other) lists what's in that directory without leaving the current.

top lists everything running.
(switching to root - superuser) sudo sh /etc/daily > this needs to be done /weekly (instead of daily) and monthly. again with all apps closed >these are how crons are run in terminal

here's more Remember to type exit when done in Terminal
 
Joined
Apr 9, 2004
Messages
973
Reaction score
4
Points
18
Location
Dubai
Your Mac's Specs
15" MBP 2.16GHz ^ATI Radeon X1600 256MB ^100GB @ 7200 rpm ^2GB RAM ^Glossy Screen +iPod 4G 20 gigs
LOL witeshark, please please please, try using punctuation marks in ur sentences. better still, press return to use a new line for every command ur explaining. :D
 
Joined
Feb 14, 2004
Messages
4,781
Reaction score
166
Points
63
Location
Groves, Texas
Caution: don't use sudo or su until you DO learn about the terminal.
It's not necessary to type exit unless you're logged in as someone else using su, just quit Terminal.
 
Joined
Mar 9, 2004
Messages
2,860
Reaction score
21
Points
38
Location
Miami FL
Your Mac's Specs
G4 1Ghz OS X 10.4.7
(ok Strider ;) .. ) Also never be root or use sudo while on line :)
 
Joined
Feb 25, 2004
Messages
475
Reaction score
3
Points
18
Location
Portland, OR
Your Mac's Specs
15" MacBook Pro, 13" MacBook Black, 15" iMac G4, 24" iMac (soon!)
witeshark said:
pwd shows current directory print working directory cd (directory) changes to the desired directory ls LS lower case lists what's in the current directory ls /tmp (or other) lists what's in that directory without leaving the current. top lists everything running. (switching to root - superuser) sudo sh /etc/daily > this needs to be done /weekly (instead of daily) and monthly. again with all apps closed >these are how crons are run in terminal here's more Remember to type exit when done in Terminal

I completely agree, witeshark's posts are generally so difficult to read that I just skip over them now. Some punctuation and proper capitalization would go a long ways. His "how to run crons" paste that he uses all the time just looks like gibberish to me. ;)
 
Joined
Mar 9, 2004
Messages
2,860
Reaction score
21
Points
38
Location
Miami FL
Your Mac's Specs
G4 1Ghz OS X 10.4.7
I edited it now it's easier to read. Guess I'm just used to reading scripts
 
Joined
Feb 25, 2004
Messages
475
Reaction score
3
Points
18
Location
Portland, OR
Your Mac's Specs
15" MacBook Pro, 13" MacBook Black, 15" iMac G4, 24" iMac (soon!)
Fomer said:
I would like to learn how to use the Terminal. I feel... "un-mac'ish" not knowing. Before making the switch months and months ago I knew Windows inside out. And is there any way I can "learn" the Terminal... maybe a website.Or is it of any use, really? I've been using OS X now for almost a year and I am ready to deepen my knowledge on the Terminal and more.

Don't feel bad. 95% of all Mac users don't know how to use Unix (which is all the Terminal is). Get yourself a nice Unix book, or look for Linux/Unix tutorials online.

I could sit here and spew out commands at you but that isn't going to do you much good. You need to learn the file structure, and how Unix really works to get a good grasp on it.

Run a Google search and you'll find all sorts of good online tutorials that should get you enough information to get you started.
 
Joined
Mar 9, 2004
Messages
2,860
Reaction score
21
Points
38
Location
Miami FL
Your Mac's Specs
G4 1Ghz OS X 10.4.7
SU in Linux is SUDO in OS X, and rm is a very powerful delete command to be used very carefully!
 
Joined
Feb 14, 2004
Messages
4,781
Reaction score
166
Points
63
Location
Groves, Texas
Actually su and sudo are two different things. Using su will log you in as root until you type exit. sudo only works for the command used after it.

And everyone is right, be VERY carefull using rm!!!
( or mv for that matter)
 

rman


Retired Staff
Joined
Dec 24, 2002
Messages
12,625
Reaction score
168
Points
63
Location
Los Angeles, California
Your Mac's Specs
14in MacBook Pro M1 Max 32GB 2TB
su is for switch user. This command is use to change to another user. Be it root or any other ID you have the pass word to.
 
Joined
Mar 9, 2004
Messages
2,860
Reaction score
21
Points
38
Location
Miami FL
Your Mac's Specs
G4 1Ghz OS X 10.4.7
cradom said:
Actually su and sudo are two different things. Using su will log you in as root until you type exit. sudo only works for the command used after it.

And everyone is right, be VERY carefull using rm!!!
( or mv for that matter)
Ah, thanks for the clarification :)
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top