Difference between revisions of "Advanced Problems"

From FreekiWiki
Jump to navigation Jump to search
(class is not currently offered.)
 
(8 intermediate revisions by one other user not shown)
Line 1: Line 1:
== Navigating ==
+
this class is not currently offered. [[User:Laurel|Laurel]] 21:31, 31 July 2010 (UTC)
 +
== Introduction ==
 +
Here are a series of pages that will teach you something about different aspects of the command line. Each page has a short introduction which gives you some information, often some new commands to learn, possibly some examples and then a short quiz. Hopefully by using the man pages and a little experimentation you'll be able to go through each of these lessons so that you'll learn a lot more about the command line interface.
 +
 
 
[[CLI Navigating]]
 
[[CLI Navigating]]
  
== Variables ==
 
 
[[CLI Variables]]
 
[[CLI Variables]]
  
== Piping ==
+
[[CLI Piping]]
=== Commands ===
 
grep  = print lines matching a pattern
 
less  = view the contents of a text file
 
wc    = print the number of newlines, words, and bytes in files
 
cat  = concatenate files and print on the standard output
 
find  = search for files in a directory hierarchy
 
sort  = sort lines of text files
 
  
awk  = pattern scanning and text processing language
+
[[CLI Process Management]]
lsof  = list open files
 
xargs = build and execute command lines from standard input
 
  
=== The Pipe Character ===
+
[[CLI I/O Redirection]]
The pipe is a vertical bar, '|', it allows you to send the output from one command, as input to a second command. It allows you to combine two or more commands to process data using combinations of commands. It is very useful, but requires you to have a strong understanding of the commands that you're going to combine. As you use the command line more, you'll become more familiar with the commands and you'll start to understand which commands make sense to pipe together and which ones don't. Each side of the pipe is a an individual statement, with a command, possible options and possibly some other information that the command needs.
 
  
=== Examples ===
+
[[CLI Flow Control]]
#count the number of files in the ~/examples directory
 
ls ~/examples | wc -w
 
  
'ls ~/examples' returns
+
== Possible Classes ==
adv_cli  bash_script  basic_commands  c_example  media_example
 
 
'wc -w' counts the number of words (words are sets of characters surrounded by whitespace. So, when you combine the two you are counting the number of files that were listed.
 
  
==Networking==
 
 
ifconfig, ping, wget, traceroute
 
ifconfig, ping, wget, traceroute
  
==While/For==
+
=== Apt ===
write, touch
 
 
 
==Apt==
 
 
can we set up a xen instance to let students have root?
 
can we set up a xen instance to let students have root?
 
* show studnets that they can have root in our current ltsp setup.
 
* show studnets that they can have root in our current ltsp setup.
 
* add the ability to have debian livecd over the net - or something like that.  
 
* add the ability to have debian livecd over the net - or something like that.  
  
==Advanced Syntax==
+
=== Advanced Syntax ===
 
*, --sort, &c.
 
*, --sort, &c.
  
 
+
[[Category:CLI Quizes]]
 
[[Category:Classes]]
 
[[Category:Classes]]

Latest revision as of 13:31, 31 July 2010

this class is not currently offered. Laurel 21:31, 31 July 2010 (UTC)

Introduction

Here are a series of pages that will teach you something about different aspects of the command line. Each page has a short introduction which gives you some information, often some new commands to learn, possibly some examples and then a short quiz. Hopefully by using the man pages and a little experimentation you'll be able to go through each of these lessons so that you'll learn a lot more about the command line interface.

CLI Navigating

CLI Variables

CLI Piping

CLI Process Management

CLI I/O Redirection

CLI Flow Control

Possible Classes

ifconfig, ping, wget, traceroute

Apt

can we set up a xen instance to let students have root?

  • show studnets that they can have root in our current ltsp setup.
  • add the ability to have debian livecd over the net - or something like that.

Advanced Syntax

  • , --sort, &c.