PDA

View Full Version : Do you know how to use Terminal ?




1member1
Oct 4, 2012, 02:46 PM
Just wondering. Most people say mac users don't know how to use it or why they need it.

There's nothing bad about it but it still intresting for me.


Wish i knew how to post pool instead :D



mrapplegate
Oct 4, 2012, 02:57 PM
Just wondering. Most people say mac users don't know how to use it or why they need it.

There's nothing bad about it but it still intresting for me.


Wish i knew how to post pool instead :D

Yes, I do know how to use Terminal.
At the bottom of Post a New Thread there is the option for a Poll not a wet pool :D

sensorian
Oct 4, 2012, 02:59 PM
No but then again I don't know how to change the timing belt on my car either but it still works ok.....

Mattie Num Nums
Oct 4, 2012, 03:32 PM
I live in terminal. I write scripts and manage Macs for a living.

old-wiz
Oct 4, 2012, 03:48 PM
Before I retired I worked with various forms of *NIX, and before that in Multics, so I am very comfortable with terminal. However, I usually avoid it now. When I worked in *NIX, I was involved in the system code that interfaced between "terminal" and the OS itself.

I can remember setting up extremely contorted shell scripts which could be a pain to debug.

peeaanuut
Oct 4, 2012, 03:51 PM
I know how to use it but find I rarely ever need to use it. I have a friend that is always in it doing tasks that he could do otherwise because he thinks it makes him look all techy like. But he also just started watching Dr. Who because thats what the cool kids do.

the necessity of a user also being a coder is over.

Risco
Oct 4, 2012, 07:22 PM
I don't have the first clue about terminal, but that is because I only recently converted to Mac after being a 25 year windows user.

old-wiz
Oct 4, 2012, 10:04 PM
I don't have the first clue about terminal, but that is because I only recently converted to Mac after being a 25 year windows user.

One big problem with terminal is that it is very easy to make an awful mess and render your Mac unbootable.

mfram
Oct 4, 2012, 10:32 PM
Very easy? Hardly. You'd have to use 'sudo' to delete anything that would keep your machine from booting. If you blindly type in commands others tell you, then you certainly can mess up the system. Never use 'sudo' and you won't completely mess up your Mac. You could certainly delete your own files, however. There's no trashcan when you use 'rm'.

Mac OS Terminal uses the "bash" shell just like many other Unix systems. Underneath that Mac clothing lies a real Unix system. The details are a little different than BSD or Linux, but most of it is still the same.

Buy a book on bash shell programming if you want to learn more about the shell used in the Terminal.

I'm very comfortable with the Terminal shell having used and administered Unix and Linux systems for 20 years. If you want to learn some scripting, it's all there. python, perl, and bash scripting are all ready to go. If you use something like MacPorts you can bring over other Unix open-source software that's not already installed. If you install XCode, you'll get a C/C++/Objective-C compiler as well.

mobilehaathi
Oct 4, 2012, 10:38 PM
I use terminal everyday....

slrandall
Oct 4, 2012, 11:03 PM
Sure; Terminal is handy for all sorts of stuff.

For someone just getting into it, just try navigating around and inspecting your system with the "cd" and "ls" commands. Try out editors like vi and emacs; try the interactive Ruby or Python shells; try writing simple bash scripts.

There's also a number of "easter eggs" that can be found with the Terminal, like:

- Type "telnet towel.blinkenlights.nl" to watch ASCII Star Wars
- Type "emacs", then Escape+x, and then "tetris"

As an aside, one of the most horrible pranks I've ever seen played on someone was recommending that they type in "sudo rm -rf /" into Terminal, followed by their password. This command is granted full administrative power ("sudo") and deletes ("rm") everything starting at the root directory ("/") recursively (meaning it deletes subfolders too) and without any prompting ("-rf"). Essentially, it wipes the entire drive. Haha, right?

Let this be a lesson to all Terminal newcomers: BE EXTREMELY CAREFUL ABOUT ANY COMMANDS YOU TYPE INTO TERMINAL IF YOU DO NOT KNOW WHAT THEY DO.

Watabou
Oct 4, 2012, 11:56 PM
Yep, I use terminal everyday. I never close it either. I just open a tmux session and I do my programming in the terminal with vim. It's just so much faster.

throttlemeister
Oct 5, 2012, 02:32 AM
The fact that OS X is a UNIX system and it has a UNIX terminal was the prime reason for me to switch to a Mac in the first place. I can't function without the terminal.

dontpannic
Oct 5, 2012, 04:14 AM
Sure; Terminal is handy for all sorts of stuff.

For someone just getting into it, just try navigating around and inspecting your system with the "cd" and "ls" commands. Try out editors like vi and emacs; try the interactive Ruby or Python shells; try writing simple bash scripts.

There's also a number of "easter eggs" that can be found with the Terminal, like:

- Type "telnet towel.blinkenlights.nl" to watch ASCII Star Wars
- Type "emacs", then Escape+x, and then "tetris"

As an aside, one of the most horrible pranks I've ever seen played on someone was recommending that they type in "sudo rm -rf /" into Terminal, followed by their password. This command is granted full administrative power ("sudo") and deletes ("rm") everything starting at the root directory ("/") recursively (meaning it deletes subfolders too) and without any prompting ("-rf"). Essentially, it wipes the entire drive. Haha, right?

Let this be a lesson to all Terminal newcomers: BE EXTREMELY CAREFUL ABOUT ANY COMMANDS YOU TYPE INTO TERMINAL IF YOU DO NOT KNOW WHAT THEY DO.

That rm -rf does work. I tried it on a working Mountain Lion beta install before I installed the final version. You would have thought there would be some kind of thing in place to stop you doing it! lol