Wednesday, January 28, 2009

Where can Linux take you?

Can you answer a few simple linux questions?

if the answer is yes to all or most of these, I'm curious what your job is........




If you wanted to turn off mail notification, what command would you use?

mesg n
mesg off
biff n
notify off
set notify=off


Which of these commands could you use to show one page of output at a time?

more
sed
pause
less
grep


Which commands will give you information about how much disk space each file in the current directory uses?

ls
ls -l
ls -a
ls -la
du .


What command would send the output of cmd1 to the input of cmd2?

cmd1 cmd2
cmd1 ; cmd2
cmd1 | cmd2
cmd1 || cmd2
cmd1 && cmd2


Under the bash shell, when a command is running, pressing control-Z will usually

adds an EOF to the file.
suspend the foreground task.
kill the command running in the foreground
move the foreground task into the background
log the user off


What is the 'man' command used for?

it is the replacement for the 'boy' command
it is a standard alias to 'ls -la | more'
it is used to display formatted html pages
to display information about the syntax for a command



In which file might you find the following entry: root:x:0:0::/root:/bin/bash



As root, what command would you type to initiate a password change for user larry?


Under the bash shell which is the most appropriate place to set environment variables that apply to all users?

rc.local
rc.sysinit
/etc/skel
/etc/profile
/etc/bashrc


Which statement describes the cron daemon?

Manages all incoming connections and spawns off child processes
Is responsible for file sharing across a network
Manages scheduling of routine system tasks
Manages the printing subsystem
Keeps track of system messages and errors


Which of the following are valid block devices on most default linux distributions?

loopback devices
serial ports
virtual terminals
tape devices
hard disks



How can you best see how much free space you have in your current directory?

Use df
Use df .
Use df /
Use du .
Use du /


Which command would you use to alter the permissions of a file (do not give any parameters)


Which command will update the slocate database as a background process?

updatedb &
slocate --start &
slocate --update &
slocate --updatedb &
slocatedb


Having booted into run level 3, how would you change to run level 5 without rebooting?

startx
run 5
ALT-F7-5
setinit 5
telinit 5

So wrong it comes full circle back to right.














Uhhhh.

Wow.

So, did you see there is a music genre called mulletcore.

Hm.

I'm guessing the mullet crowd is the target audience of the advert.

There's a new woman in my life



A Sri-Lankan MC who makes my stereo bleed and my chonies tight with her exotic hustle and flow.


MIA

Tuesday, January 27, 2009

Saved the car


I got a craigslist gig collecting sperm from prize stallions. I'm happy because now i can keep my car and my ipod. (which i blew out with rockbox btw)

check out the new gig at.....

http://www.theaicentre.co.uk/about_ai.html
I guess we are officially poor. I put my Ipod and my car on craigslist today....maybe by some miracle i will have rent on Monday.

Monday, January 26, 2009

Books For Bruno (Hacker, Snowboarder, Office-Arranging Guru)

Circuit Cellar?
I'd like to see Memristor Cellar.

Anyway, the two-stage bootloader looked like something useful with base 4 code, I just read this issue, pretty good, considering I'm not an EE. (or even an ee)
This site has tons of free books. http://ebooks-share.blogspot.com


Circuit Cellar - August 2008

Download link:

http://rapidshare.com/files/170553697/CircuitCellar_2008-08.rar

PGP


If it's that private, do it in your room.

Everybody knows one


I am officially homebound in my attempt to become a Linux Guru. My beard is almost done, my diabetes is coming along nicely, and I have had the noodle dream.....just joking. sort of.

Do you realize that to get a decent job a hacker basically has to let the other (slow) team bust him and punish him--punish him for being better at thinking in different ways. So, if you need them to bust you, shouldn't it be a bust on the Big Dirty?

Slumdog Millionare


To the average white guy, this movie is way out of grasp. Stick to watching 'Ow, My Balls!' and 'Dancing With the Stars'

This movie is violent and sad and happy and fucked-up in so many ways all at the same time that I have seen it six times since Friday. My girlfriend refuses to watch it because she decided it was too much work to read subtitles. Ha! Her loss. It's been a long time since I got to be the conformist, and I have a feeling everyone who sees Slumdog Millionare are going to be as surprised as I was.

Even the soundtrack is unbelievably good. I wonder how many people watching this heard 'Paper Planes' by MIA and thought that T.I. got sampled. hehehe
Anyway.......credits seem to be rolling.

I may just start it again now.

Shelltips

Bash is so intuitive that you can just make shit up as you go and it still works.
Some of these autocommands I use, and some I just found out about screwing around 'researching'.


Automatic Command Completion

Use the TAB key and bash will attempt to complete the command for you automatically. You can use it to complete command (tool) names. You can also use it when working with the file−system, when changing directories, copying files et cetera.

There are also other lesser known ways to use automatic command completion (for example completing user names)

ESC−Y (Y: special character) Will attempt to complete the command name for you. If it fails it will either list the possible completions (if they exist). If there are none it will simply beep (and/or) flash the screen.

CTRL−X−Y (Y: special character) Lists the possible completions (it won't attempt to complete it for you) or beep if there are no possible completions.

Special−characters:

Use the following special characters combined with either ESC−Y or CTRL−X−Y , where Y is some special characters.

For example ESC−$ or CTRL−X−$ to complete an environment variable name.

◊ ~ (tilde) complete a user name
◊ @ (at sign) complete a machine name
◊ $ (dollars sign) complete an environment variable name
◊ ! (exclamation mark) a magic character for completing a
command name or a file name. The ! special character has the
same function as the TAB key. It works in some other
situations; for example when completing man page names.