PDA

View Full Version : Linux Terminal for noobs tutorial?



Johnson
August 20th, 2007, 23:14
I'm new to the linux terminal. Is there a short tutorial that explains basic commands, such as change directory?

Thanks.

utcrazy
August 20th, 2007, 23:18
Change directory would be cd.

Ben
August 20th, 2007, 23:24
Scroll down a bit on the page to see a list of some basic commands.
https://help.ubuntu.com/6.06/ubuntu/desktopguide/C/linux-basics.html

Johnson
August 20th, 2007, 23:52
Thanks, just what I needed.

stuffradio
August 22nd, 2007, 00:50
Also if I'm online MSN at the same time as you just ask, etc.

Blaster
August 28th, 2007, 02:00
Ever have a question feel free to contact me.

Some useful commands are


sudo apt-get update
sudo apt-get (program)
sudo gedit

Starcraftmazter
August 28th, 2007, 02:15
http://www.oreillynet.com/linux/cmd/

Ben
August 28th, 2007, 03:58
Ever have a question feel free to contact me.

Some useful commands are


sudo apt-get update
sudo apt-get (program)
sudo gedit

He didn't say whether or not it was a debian-based system. (And it would be sudo apt-get install (program)). Sorry if it seems like I'm targeting you, since this is the second topic I've quoted/commented on your post, but I'm really not.

Which brings me to my question: So, uh, Johnson. Whatcha using over there?

krakjoe
August 28th, 2007, 06:40
Here's some useful stuff that rolls of my keyboard a few hundred times a week, remember I'm always logged in as root, so you might need to be the same for some of them ... variable arguments are { in here }



# Dump db_name to archive.gz
mysqldump --database {db_name} | gzip > {archive.gz}
# Backup the_directory to archive.tar.gz
tar -cvzf {archive.tar.gz} {the_directory}
# Extract a .tar.gz archive to location
tar -xvzf {.tar.gz archive}
# Create a tar.bz2 archive from files in location
tar -cvjf {.tar.bz2 archive} {location}
# Extract a .tar.bz2 archive
tar -xvjf {.tar.bz2 archive}
# Delete a directory recursively
rm -rf {directory}
# Move original directory/files to new directory/files location
mv {original} {new}
# Do a regular expression match on a webpage
curl -s {webpage} | grep "{expression}"
# Send email to to@you.com from from@me.com
echo "{email}" | sendmail -f {from@me.com} {to@you.com}
# Send contents of text file to to@you.com from from@me.com
cat {text file} | sendmail -f {from@me.com} {to@you.com}

Blaster
August 28th, 2007, 10:05
He didn't say whether or not it was a debian-based system. (And it would be sudo apt-get install (program)). Sorry if it seems like I'm targeting you, since this is the second topic I've quoted/commented on your post, but I'm really not.

Which brings me to my question: So, uh, Johnson. Whatcha using over there?

Yea I guess your right on that. Ahh well lets see what he is using so we can see if my suggestions would have helped.