User:GregMB

From GSLUG

Jump to: navigation, search

I'm probably the youngest member of this site, at 13. I've been an (K)Ubuntu user for roughly 6 months now. My Linux-ification worked much like this comic (xkcd.com), the difference being that I got WiFi working in 9 (horrifyingly long) days. I completely understand the need for RAID, as I go to school online, and having to retake the biggest non-WASL test of the year because the server's hard drive crashed is not fun.

My hobbies include the command line, increasingly futile attempts to learn to program, and not having a social life. If you want my best example of non-futile coding/scripting, check out the lines below.

(number sign doesn't want to show up here)!/bin/bash

ps -e | grep $1

echo -n "Please type the PID of the process printed above. It is usually four or five numbers long. If you wish to cancel, type '0'. : "

read -e PID

if [ $PID -eq 0 ] ; then

echo "$1 was not killed."

else

kill $PID

echo "$PID ($1) was killed." fi

Save that as "killer", and chmod killer +x Then, do ./killer --program name

My ten most used BASH (or maybe bash?) commands are

    55 sudo
    43 cd
    39 ./killer
    33 ls
    24 kill
    23 nmap
    17 vim
    15 python
    14 ps
    13 make

Now to explain.

1: Sudo. Don't think I'm a linux newbie that uses root to do everything. I despise having to use root, as I always think I'm going to break something.

2: Cd. What can I say? This is probably everybody's most used command.

3: ./killer. Eventually I'm going to put this script in /usr/bin and save two characters.

4: Ls. See cd.

5: Kill. Because killer can't kill zombies.

6: Nmap. Because I'm paranoid. I'm surprised that nessusd didn't make it. "Nessus. Because the best defense is a good offense."

7: Vim. Suck it, EMACS!

8: Python. Because so many programs (including 90% of mine) need python.

9: Ps. You know, I almost had to look up this command, because I thought I never used it. But now that I remember, I use this about everyday.

10: Make. Because some times "dpkg -i somepackage.deb" isn't possible. Plus, I love installing from source.

Personal tools
Linux