Confusion over terminology SSH, Shell, Terminal, Command Prompt and Telnet
I don’t usually use SSH if I can get away with it, but if I have to I do of course, and I’ve seemingly done this for years while still managing to remain slightly confused about these different terms … from my basic research, this is my understanding, could someone verify/correct this? Telnet … before SSH, not secure SSH … ( secure shell ) the general name of the system/protocol Shell … short name for [...]
Continue Reading »How to get Network Data Received and Data Sent Information on Mac OS X?
I want to store the network data received and data sent information on a variable or in a file. Using the below command I can grep it and print the line on screen. But I’m not able to store the info in a bash variable. top -l 0 -n 1 -c d | grep -e ‘^Networks:’ Is there any better approach? (on Mac OS X) Asked by abhiomkar This should work for you: netstat -bi [...]
Continue Reading »Installed PHP 5.4 via OS X binary, but `php` in terminal still uses 5.3
I used a nice one-line command to install PHP 5.4 Mac OS X Lion, from php-osx.liip.ch. This is working perfectly in Apache – my local sites are now using PHP 5.4. But when I run php -v from the terminal, it still uses version 5.3. This is causing problems. which php gives me /usr/bin/php, so that’s where the old version is still installed. And after some digging I’ve found that the 5.4 binary is located [...]
Continue Reading »Is it possible to determine WiFi type with a Linux / Mac command?
At the co-working space that I am in, there are a number of wireless access points around. However, there is one that only some of us are able to connect to. We suspect it is because the access point is running on a wireless network that one of the machines does not support. Out of curiousity, I got to wondering: Is there some command line utility to tell whether a wireless network is a, b, [...]
Continue Reading »Can’t Install npm, Can’t Remove npm, Can’t Access Any Commands, Can’t Install Coffeescript
I am on Mac OS X Lion, I just used the package installer from nodejs.org to install node.js. Node.js is working fine, and Node.js comes with npm. I have homebrew installed as well. I am just trying to install coffeescript, but the terminal keeps throwing an error. So i decieded to check what version of npm I am running. It just keeps throwing an error. Whenever i try to use any npm command, it throws [...]
Continue Reading »cp command, ignore unchanged files
Is there a way to do a cp but ignoring any files that may already exist at the destination that aren’t any older then those files at source. Basically I want to copy the contents of one disk to another, then run the copy again but only updating new files or files that have been updated on the source side. Thanks Asked by ILMV use this: rsync -a /source /destination Alternatively, you can get more [...]
Continue Reading »CPU load on Debian (webmin)
When I look at webmin’s “system information” page it tells me that the CPU is much greater than when doing top in the terminal? Why? What is going on? Today the server also broke down Asked by clarkk I recommend not to wonder what web-based tools show as a status. The information being shown there can be outdated (usually by a few seconds, often depends on how fast your browser loads the page). Your screenshot [...]
Continue Reading »freeze and thaw tmux and/or terminal sessions?
I would like to be able to freeze and thaw tmux sessions. That is, to take a complex set of session state, persist it, and bring it back from some persistent store later. Essentially, git stash for terminal session state. Does anybody know of a way to do this? Asked by David Watson CryoPID (http://cryopid.berlios.de/) is close to being able to do this, I’m not aware of any others. Answered by Jack Check more discussion [...]
Continue Reading »OS X WiFi settings via terminal?
I manage a large group of macs and they are all connected via ethernet. I would like to disable wifi on them and then require and administrator to change any wifi settings (pretty much what is shown in the picture below) Since I manage so many, I would like to push out the setting via remote desktop manager. Is there a command line for these settings? I know that turning off wifi is networksetup -setairportpower [...]
Continue Reading »OSX wifi settings via terminal?
I manage a large group of macs and they are all connected via ethernet. I would like to disable wifi on them and then require and administrator to change any wifi settings (pretty much what is shown in the picture below) Since I manage so many, I would like to push out the setting via remote desktop manager. Is there a command line for these settings? I know that turning off wifi is networksetup -setairportpower [...]
Continue Reading »Recent Posts
- What is the easiest way to upgrade my existing Perl 5.14 to Perl 5.16 on FreeBSD 9 using the ports system?
- Know if mysql has done its job
- Redirect https .com to https .co.uk without a valid SSL cert on .com without DNS change
- Why is it a bad idea to use customer email as from address
- 100% packets dropped on first RX queue on 3/5 raid6 iSCSI NAS devices using intel igb (resolved)



