Revision3.com Shows Schedule Inside Revision3 Store


Go Back   Revision3 Forums > General > Cry for Help

Reply
 
Thread Tools Search this Thread Display Modes

  #1  
Old 05-05-2011, 08:56 PM
xeemo
Member
 
Join Date: Apr 2006
Posts: 44
Status: Offline
Default Learning the Linux Terminal (newbie guide/blog post)

http://torugametech.blogspot.com/

Just a little guide I put together with some tips I wish I knew day one.
Reply With Quote
  #2  
Old 05-17-2011, 05:01 PM
ghelyar
Senior Member
 
Join Date: Jun 2009
Posts: 386
Status: Offline
Default

just some notes:

in addition to --help, -h etc don't forget man and info in this section.

mv is also used to rename files

chmod accepts letters for those not comfortable with octal notation (e.g. chmod a+rx)


pipe is not used to execute multiple commands at once, it is used to pipe the output of one into the next


You could also add things like &&, ;, <, >, >>, 2>, 2>&1 etc

ln -s is a useful one too.


maybe su too (or sudo if you swing that way)

Last edited by ghelyar : 05-17-2011 at 05:04 PM.
Reply With Quote
  #3  
Old 07-08-2011, 04:06 AM
secret-steve-crumbles's Avatar
secret-steve-crumbles
Elite Member
 
Join Date: Mar 2008
Posts: 1,417
Status: Offline
Default

uname -a and cat /etc/issue are both very helpful

Also, how could you not mention sudo bang bang! or sudo bang 5!

I do commend you for not even talking about dd. Way to dangerous for newbs to mess with in a shell. :/
__________________
I don't mean to be condescending (which means to talk down to)
Reply With Quote
  #4  
Old 07-08-2011, 04:07 AM
secret-steve-crumbles's Avatar
secret-steve-crumbles
Elite Member
 
Join Date: Mar 2008
Posts: 1,417
Status: Offline
Default

Oh, and don't forget:

echo WASSUP! I am here for your internets! | wall

Always a good one on a shared server.
__________________
I don't mean to be condescending (which means to talk down to)
Reply With Quote
  #5  
Old 07-11-2011, 09:10 PM
shamoun
Member
 
Join Date: Jan 2010
Posts: 44
Status: Offline
Default some additional notes..

if you run into issues:

/var/log/messages or /var/log/messages.log is always a good place to start looking

and regarding users and groups:

cat /etc/group

regarding editors:

vimtutor

this will teach you to use the vim editor, very handy since alot of distros and embedded devices (like both my routers) use vi as their editor. these conventions also work their way into various places like man pages, copy mode in screen, etc. it can really be a time saver if you get accustomed to it.

For converts from other OSes knowing a bit about the filesystem is handy, try googling for information on the 'file hierarchy system'
Reply With Quote
  #6  
Old 07-22-2011, 09:36 PM
justpeon
Member
 
Join Date: Jun 2011
Posts: 155
Status: Offline
Default

nano is probrably is a much easier editor for novices to start with. In fact vi(m) vi improved has to be installed on the system with Ubuntu to use it anyway.



You can always use gedit or sudo gedit to edit files also if you have a desktop,

ssh, scp, and free are also good commands to know.

man is probably the most important command to know.

man free
gives you info and syntax about the free command.
Reply With Quote
  #7  
Old 07-24-2011, 01:52 PM
justpeon
Member
 
Join Date: Jun 2011
Posts: 155
Status: Offline
Default

Good place for basic commands.
http://papa.indstate.edu/docs/common_commands.html

Using cgi (common gateway interface), you can set up a web page to just point and click to make things easier. An early version of what we did.

Reply With Quote
  #8  
Old 08-07-2011, 10:50 AM
culaterout
Newbie
 
Join Date: Aug 2011
Posts: 5
Status: Offline
Default

I've been using Linux for about 18+ years....

Now real question is what are you using terminal for?????????

Lets outline advantages of terminal and what makes it a bit time consuming...

Lets Place Boarders around How is using the terminal Admin or Net-worker

1. Admin will find setting up permissions and new accounts much easier then buy Graphical User Interface or GUI, Backups, copy files and routine maintenance easy...

2. Troubleshooting Servers the terminal would be the best place to go..


Only disadvantage a Admin is going to have is typing a email reply via terminal is not going to be as easy as going to Gmail hitting reply and its done...

Formatting letters in terminal is not as pretty as in Open Office.

The small amount of Disadvantages does not outweigh the advantage of Terminal in Admins life...

Geek or Home User

1. Setting up permissions may be a bit easier, but gives no real advantage since it is one account or two accounts...

2. Troubleshooting Devices it is the number one use for terminal in everyday use....

3. Vi or Nano editor is to edit scripts or better known as programs...

4. The second most popular use is setup of Slackware, Gentoo or Arch Linux. Any Distro that makes you manually install video card driver, hard drive partitions, Gnome desktop or KDE desktop environment..


My personnel experience with terminal came from setting up Arch Linux 2 years ago....

Advantages were easy to see right off the bat... The Computer was faster by light years..

I knew exactly what was loaded on the computer. No unnecessary use of programs installed freed up hard drive space....

I would recommend sitting in irc chat on ubuntu and watch the answers you get to resolve common problems by terminal commands... Follow along with the user type in the commands on your terminal and gives you idea of how to learn common every day terminal commands...

There will be a wide variety of commands from

Troubleshooting

lspci - list pci devices
uname

Managing system

top
free
ifconfig
iwconfig
netstat
ping
useradd
passwd
last
groupadd

Commands to install packages using Debian

sudo
apt-get - Debian
apt-cache search


Zip or unzip files

tar
bzip2
gzip

Security

ssh
Samba


There are far more questions that get asked on IRC CHAT then in a forum, because people want to instantly have problems resolved...

At first it took about a year before I could help 1 person a day.. After about 1 1/2 I could do about 8 a day... After two years I could pretty much solve any problem I had with linux up to 95% of the time... There will always be something to learn in linux new updates, troubleshooting... If you look at learning the terminal like a sprint you will not be very good... If you look at learning the terminal like a marathon well sky's the limits....


Remember: write down notes on a joe, gnotes whatever way is easier to take notes so if forget you have a script you can follow till you get good enough you remember the steps...
Or have idea of how to resolve the problem...
Reply With Quote
  #9  
Old 08-08-2011, 12:19 AM
culaterout
Newbie
 
Join Date: Aug 2011
Posts: 5
Status: Offline
Thumbs down

Ooooppppsss....

Want to apologize to the Admin Didn't read the rules to the Cry for Help Forum..

Quickly if your looking for linux help this is not the site I would refer you to

LinuxQuestions.org

or

Your Distro's forum

Sorry,


PS this forum is to post videos, websites and music....

Not a cry for help as in computer trouble... Even though that would seem odd because you give out computer tips on tekzilla????


Very ODD tv network to be sponsored by and even weirder to see all the tech talk shows they list??????

puzzling
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



All times are GMT. The time now is 05:06 PM.

Rev3 Forum RSS


© 2005-2010 Revision3 Corporation