Kasutaja tarvikud

Lehe tööriistad


materjalid:linux_basics

Erinevused

Siin näed erinevusi valitud versiooni ja hetkel kehtiva lehekülje vahel.

Lõlita võrdlemise vaatele

Both sides previous revisionPrevious revision
Next revision
Previous revision
materjalid:linux_basics [2019/04/25 11:06] lucianomaterjalid:linux_basics [2019/04/25 13:40] (Hetkel kehtiv) luciano
Rida 1: Rida 1:
-====== Linux basics tasks ======+====== Linux basics tasks ======
 ===== Intro ===== ===== Intro =====
 __First commands:__ __First commands:__
Rida 29: Rida 29:
  
 You can use the "pwd" or "ls -a" command to see the address of the directory. You can use the "pwd" or "ls -a" command to see the address of the directory.
- 
- 
-====== Linux basics tasks 2 ====== 
  
 **touch** **touch**
Rida 99: Rida 96:
  Create a script, which when executed, will print the result directly from having searched for "hosts"  Create a script, which when executed, will print the result directly from having searched for "hosts"
  The name for the script is script1.sh  The name for the script is script1.sh
- 
- 
-====== Linux basics tasks 3 ====== 
  
 ===== Redirection ===== ===== Redirection =====
Rida 134: Rida 128:
  
 ===== Redirecting the Input ===== ===== Redirecting the Input =====
 +
 +**sort**
 +
 +The command sort alphabetically or numerically sorts a list.
 +
 +===== Task =====
 +
 + Use the sort command to sort alphabetically the fruits that you have put in biglist, once you have it, save the result in another file called sortbiglist
 +
 +===== Wildcards =====
 +
 +The character * is called a wildcard, and will match against none or more character(s) in a file (or directory) name. For example, in your unixstuff directory, type
 +
 +   ls list*
 +
 +This will list all files in the current directory starting with list....
 +
 +Try typing
 +
 +   ls *list
 +
 +This will list all files in the current directory ending with ....list
  
  
materjalid/linux_basics.txt · Viimati muutnud: 2019/04/25 13:40 persoon luciano