Linux.com

Linux basics

Link to this post 16 Aug 09

some linux basics

Basic terminal commands:
http://www.reallylinux.com/docs/basic.shtml

commands a-z:
http://ss64.com/bash/

Piping commands:
http://wiki.linuxquestions.org/wiki/Pipe

a bunch of helpful sed one liners
SED:
http://www.unixguide.net/unix/sedoneliner.shtml

the grep command
Grep:
http://tldp.org/LDP/Bash-BeginnersGuide/html/sect_04_02.html

chmod (detailed) changing permissions:
http://osr507doc.sco.com/en/man/html.C/chmod.C.html

chown (detailed) changing ownerships:
http://osr507doc.sco.com/en/man/html.C/chown.C.html

bash basics: http://linuxbasics.org/tutorials/advanced/realworld/start

(there's alot of redundancy here, but this stuff is everwhere :P)

uncompress a .zip file | unzip -d file.zip
uncompress a .tar file | tar vxf file.tar
uncompress a .gz file | gunzip -d file.gz
uncompress a .bz2 file | bunzip2 -d file.bz2
uncompress a .tar.gz file | tar xzvf file.tar.gz
uncompress a .tar.bz2 file | tar xvjf file.tar.bz2

ok, so you just downloaded your 'source.file.compressionformat'
extracted it, now you need to compile it.. (if it calls for being compiled)

cd extractedfilesdir
ls -f, look for documentation like a README or INSTALL or README_FIRST, something to that effect..
and example type: cat README | more
..and read thoroughly, this will give you detailed instructions.

to configure a source
start off with: ./configure --help | more
this will give you the option to enable disable change installation paths so on so forth

so your basic configure would be:
source$
./configure --with-feature=enable --prefix=/usr/local/mysource
then if all goes well:
make
su -
make install
if all goes well
the source will compile and be installed in /usr/local/mysource

sometimes files are downloaded as 'bin' files
or 'sh'

(be careful with these and make sure the source from which you are obtaining them from is safe )

once downloaded ;
chmod +x filename.bin or filename.sh
(this makes the file executable)

then type ./filename.bin or ./filename.sh
(as before there's many different types, these are just the most basic)

This isn't anywhere near what linux is capable of, but you've got to learn to crawl before you walk

..My objective here is to motivate people to learn and use the console
..The most powerful user-interface in linux. It don't have to be pretty to be STRONG! :)

Link to this post 22 Aug 09

If you guys have any questions in general pertaining to the nature of this post -- By all means, you can ask me personally via a message or post a question in this thread

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board