High Resolution Picture of Hurricane Rita
Wow, this is crazy. Here it is
Virtualization, Automation, and anything else that might be on my mind
Wow, this is crazy. Here it is
Kyle and I are going to be starting a podcast in the near future called Cit3.
We’ll be talking about anything related to the previous week.
More about this later,
Jon Howe
This week’s command is: alias
This command is great. In short it allows you to create Pseudo commands.
For example, on the server that this site runs on (my server), I regularly need to check to see what connections my computer has initiated, and what services they’re through. I do this using the linux command netstat using the following command line string: “netstat -pan | grep tcp
“. Since I’m not doing this blog on netstat I will not explain that to you. If you have any questions, just comment on this post below and either me(Jon) or Kyle will attempt to explain it to you.
Now isn’t that command a little bit cumbersome? I think so at least. This is where alias comes in handy.
To set up an alias in your *nix based profile do the following things:
cd ~
.bashrc
file using the text editor of your choice. I’ll be using vi, so I’ll type in vi .bashrc
So now anytime that you enter “ns”, “netstat -pan | grep tcp” will be executed in it’s place.
I should mention that you don’t have to place the alias command in your .bashrc file. You can also run it on the commnad line, but it will only have its effect for the current session.
Hopefully this’ll help you out at some point.
More later,
Jon Howe
Alright, I told you that I’d be posting another quickie on screen so here it is.
There’s not much more to talk about that’s relevant, except for one piece.
Restoring from saved sessions:
In order to view the saved sessions enter screen -r. you should be presented with a list of available sessions.
To restore a session enter the following command: screen -r SESSION_NAME.
That’s pretty much all that you need to know.
More tomorrow,
Jon Howe
The guys at The Original Talk Like A Pirate Day Site have created thier own holiday. Talk like a pirate on Monday, September 19. This’ll be my first year taking part in it, and I’m sure I’ll have fun. Who knows… you might too.
A friend of mine is going to be posting stuff up here periodically. His name’s Kyle Smith. He’s a smart guy, and should make some good contributions to the site.
From The Gallery Website
“We are incredibly pleased to announce the release of Gallery 2.0! Over three years of design and development have gone into creating the best online photo management product possible. Gallery 2.0 is the natural successor to Gallery 1, and we hope that you like what you see. Don’t wait, download Gallery 2 now!”
I just installed it, and it was a breeze, I should have a link up here in a little bit.
Later,
Jon Howe
This week’s command is: screen
I actually just found this command recently. It’s a great little treasure that expands the use of unix in a huge way. Let me explain.
For those of you who don’t know, Unix uses a CLI (or Command Line Interface), meaning that there are no “windows” or “X” boxes to close the windows, it’s all handeled by the keyboard and text on the screen.
Multitasking is critical with computers, and until recently, I’ve been cheating by opening up separate windows in my SSH (or Secure Shell) client. This can be a little bit tiring because you have to connect to the server each time you make a new window.
Screen takes care of this completely by allowing you to have multiple of what I like to call “virtual sessions”. Now an example.
So you connect to your server and want to have one of these so-called “virtual sessions”. It’s easy. Just get to the command line and enter screen
.
Your screen should go blank, Congrats! Your in a virtual session.
In order for you to go back to your original session hit ctrl + a and then d.
This closes your virtual session, but keeps it open in memory. If you want to close it completely, just hit ctrl + a and then hit shift + d, or uppercase D.
Either of these two will bring you back to your original screen and will either keep the contents intact or destroy them.
Now that you’re back at your original screen just hit screen -s to restore your session! It’s as easy as that.
Maybe I’ll add some more advanced features of screen later this week, and give ya a freebie.
More later,
Jon Howe
A new JonHoweOnline.com tradition is being formed. Every Monday, I’ll be introducing a new *nix command.
Feel free to leave me comments about the commands. Maybe you think that you know a better way to do something, maybe you think that this command stinks. Let me know!
Later,
Jon Howe