PDA

View Full Version : Terminal uses in everyday life?




_pb_boi
Apr 27, 2004, 07:20 PM
Hey people,

Thought I'd throw in a question here; what do you all use the terminal for, in every day life? I don't mean just a one-off app that requires terminal use, but something you'd use every day - what has you keeping a terminal window open all day?

Personally, I only use the terminal for coding and stuff... just wanna know what your terminal usage habits are!

andy



switchingGeek
Apr 27, 2004, 07:40 PM
1) running top :D
2) killing things
3) ssh-ing in to different servers
4) ifconfig is easier than opening the network preferences
5) netstat
6) vi
7) moving stuff, copying stuff, i tend to do it faster at the cli
8) checking disk usage "sudo du -k / | sort -nr | less "
9) compiling and installing things that dont come with fink

stoid
Apr 27, 2004, 07:42 PM
1) running top :D
2) killing things
3) ssh-ing in to different servers
4) ifconfig is easier than opening the network preferences
5) netstat
6) vi
7) moving stuff, copying stuff, i tend to do it faster at the cli
8) checking disk usage "sudo du -k / | sort -nr | less "
9) compiling and installing things that dont come with fink

Too bad I don't even KNOW what any of those things are except 2, much less how to do them :eek: :( :confused:

Makosuke
Apr 27, 2004, 08:46 PM
I use it to SSH into web servers all the time. Good for quickie FTP on occasion, as well.

howard
Apr 27, 2004, 08:51 PM
what does SSH mean?

abhishekit
Apr 27, 2004, 10:45 PM
what does SSH mean? ssh is secured shell login..in english u can login to any unix, linux or mac os x system by
ssh ip
i use terminal predominantly for
ssh..i connect to my linux box at school..
top..actually i use geektool to display top output on the desktop..
also to open any program thats in my applications folder..i hv written a simple shell script fr that, with help from some members here..and its much better...

#!/bin/sh
read -p "which app >> " name
cd /
cd applications
if open "$name".app
then
#successful
:
else
#not found
cd /Applications/Utilities
open "$name".app
fi

save this file as z.sh
and then at terminal write
./z.sh
it wd open any app...cool fr my purposes..

cheers

mms
Apr 27, 2004, 10:50 PM
SSH, FTP, SCP, top, uptime, top, vim, and of course, snake/tetris/doctor on emacs :)

I also work faster in CLI and use it for many Finder jobs.

motulist
Apr 28, 2004, 01:33 AM
I use the terminal to concatenate all the time. Concatenate is just a fancy word for joining a bunch of individual files in to one big one. When you download any large file like a movie from usenet, it is always cut into little peices for succesful transmition. When you get all the peices you gotta put'em back together in to one big file again. Just throw em all in to a folder and type cat * >FileNameHere.mpg and viola, all the peices are sewn back together again. Don't know what usenet is? If you aren't afraid of getting a little geeky, download an app called hogwasher and spend some time figuring things out, you won't regret it.

MacFan26
Apr 28, 2004, 02:02 AM
I use Terminal for SSH and sometimes FTP, and a lot of the time I'm running Folding@Home. Sometimes it's cool to run Top and put it in fullscreen. With green text and a black background my mom thinks i'm a crazy computer genius, lol.

nesbitt_a
Apr 28, 2004, 03:10 AM
I find terminal much quicker to use for standard file tasks than finder itself. Browsing files, quickly editing files, opening files with a specific application ('open -a /Applications/... file.extension) is much more productive.

Also, I make extreme* use of scp, sftp and wget for networking and downloading off the internet (wget is much better than clicking 400 links on a page, when I can get all the files with one simple command!)


- Cheers, A.

_pb_boi
Apr 28, 2004, 10:54 AM
Thanks for the replies guys :)

Today I'll be using it to reschedule my cron from 5am lol... also, I use it for Finder stuff - grep is much quicker, and sorts alphabetically :)

And yeah, I ssh from terminal and MUD. Suppose I use it slightly more than I thought I guess :)

andy

Quobobo
Apr 28, 2004, 05:59 PM
I use SSH all the time, for my website, for when I'm away from home, between computers on my LAN... I usually need it for running top/killing processes, using pico occasionally, and also to browse/open files sometimes.

Mitthrawnuruodo
Apr 28, 2004, 06:21 PM
Two main uses (when I'm not compiling programming projects):
- ssh/sftp into my school account
- whois to find the _real_ sender whenever I get a virus infected e-mail

I also use commands like ping and ifconfig when there is something fishy with my network settings...

&RU
Apr 28, 2004, 07:13 PM
Yes switchinguy, vi is the ultimate use for the terminal! Death to Emacs!

javabear90
Apr 28, 2004, 07:16 PM
1) running top :D
2) killing things
3) ssh-ing in to different servers
4) ifconfig is easier than opening the network preferences
5) netstat
6) vi
7) moving stuff, copying stuff, i tend to do it faster at the cli
8) checking disk usage "sudo du -k / | sort -nr | less "
9) compiling and installing things that dont come with fink

whoa!! thats the exact same things that I use terminal for! :eek:

o.. almost forgot pico! :rolleyes:

kbonnel
Apr 28, 2004, 07:29 PM
Since I do *NIX for a living, I use terminal all the time. I usually have 10 ssh sessions going. God I love my powerbook..... (and of course one of those terminals is my folding :) ).

Kimo

mainstreetmark
Apr 28, 2004, 09:13 PM
For SSHing, I've made a folder with a dozen or so .term files, and I keep that folder down on the dock. I can right-click on the folder, choose a .term, and have quick access to all the servers I cause trouble on. Different .terms let me set different colors and such, so it's quite nice.

Local term use includes a lot of tcpdump, since I'm trying to figure out which of my many net applications are sending and receiving at any given moment (I'm on snailband, so bandwidth is at a premium)

Westside guy
Apr 28, 2004, 09:56 PM
Today I'll be using it to reschedule my cron from 5am lol...

psst! Installing the free open source tool anacron (http://www.apple.com/downloads/macosx/unix_open_source/anacron.html) is a better way to do this.

FattyMembrane
Apr 29, 2004, 02:50 PM
top
pkill (a little script to kill a process by the app name instead of pid)
ftp
curl

i use the command-line ftp for web-site maintenance because it's quicker than a gui program. i use curl as my download manager if i'm getting a big file and don't want to burden safari with it.

_pb_boi
May 2, 2004, 01:07 PM
psst! Installing the free open source tool anacron is a better way to do this.

Westsideguy - cheers, I'll download and install that tool :)

The reason I did it the CLI way was just basically to experiment some with sudo, and to get used to usin the CLI for something other than programme compilation, I guess. :)

Thanks again man,

andy

thecombatwombat
May 2, 2004, 08:57 PM
Oh man.

ssh/sftp, mysql, file browsing (OS X's "open" command is freaking great), top, kill, fink

Random commands I realized I can't be without after running history:

nslookup/dig, nmap, ping, file, man, ps, cat

thecombatwombat
May 2, 2004, 09:01 PM
i hv written a simple shell script fr that, with help from some members here..and its much better...


Nice work but the open command can already do this.

Run "open -a itunes" (not even case sensitive) and see what happens.

abhishekit
May 2, 2004, 09:21 PM
Nice work but the open command can already do this.

Run "open -a itunes" (not even case sensitive) and see what happens.
oh sweet..i dint know we had a shortcut.. :) ..

soulshriek
Jan 14, 2009, 08:43 PM
I use the terminal to concatenate all the time. Concatenate is just a fancy word for joining a bunch of individual files in to one big one. When you download any large file like a movie from usenet, it is always cut into little peices for succesful transmition. When you get all the peices you gotta put'em back together in to one big file again. Just throw em all in to a folder and type cat * >FileNameHere.mpg and viola, all the peices are sewn back together again. Don't know what usenet is? If you aren't afraid of getting a little geeky, download an app called hogwasher and spend some time figuring things out, you won't regret it.

I guess its too much to hope that this works if the file is in rar format

motulist
Jan 14, 2009, 09:28 PM
I guess its too much to hope that this works if the file is in rar format

It doesn't matter what format the files are in, they'll concatenate the same way regardless of file type. But I doubt you really want to concatenate several rar files. If you have files named rar1, rar2, etc or something similar then that is a multipart rar file, not a split file that needs concatenating. Any unrar utility should be able to unrar those files together just fine.

soulshriek
Jan 14, 2009, 10:38 PM
It doesn't matter what format the files are in, they'll concatenate the same way regardless of file type. But I doubt you really want to concatenate several rar files. If you have files named rar1, rar2, etc or something similar then that is a multipart rar file, not a split file that needs concatenating. Any unrar utility should be able to unrar those files together just fine.

The latter is what i meant. Thanks. While i've got your attention. Where would be a good place to start if i were to want to start using terminal. either to be more efficient.. but really just to learn

PS how do you disconnect from a foreign address while in terminal