Skip to content

MichalCzerwonka/srodowisko

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laboratorium 2

ZADANIE 1

head -n 2 program.c

ZADANIE 2

tail -n 4 program.c

ZADANIE 3

grep "wolno" program.c

ZADANIE 4

chmod u=rw program.c
chmod g=r program.c

##Laboratorium 3

ZADANIE 1

more -5 /etc/passwd

ZADANIE 2

cat tekst1.txt - tekst2.txt > tekst3.txt

ZADANIE 3

head $HOME/* -n 5 -q

ZADANIE 4

head -n 5 /etc/passwd |tail -n 3

ZADANIE 5

tail -n 7 /etc/passwd | head -n 3

ZADANIE 6

cat /etc/passwd |tr "n" " "

ZADANIE 7

cat plik.txt | tr " \t" "\n"

ZADANIE 8

head -n 0 /etc/* | tr -s '[n*2]' 'n' | wc -l

ZADANIE 9

cut /etc/passwd | head -n 3 | wc -n

Laboratorium 4

ZADANIE 1

ls | tr a-z A-Z

ZADANIE 2

find . -printf "Plik: %f Rozmiar: %s Prawa: %M \n" -maxdepth 1

ZADANIE 3

ls --sort=size -l

ZADANIE 4

cat /etc/passwd/ | sort --reverse --general-numeric-sort

ZADANIE 5

cat /etc/passwd | sort -r --field-separator=":" -g -k 4,3

ZADANIE 6

find / -printf "%u\n" 2>/dev/null | sort | uniq -c

Laboratorium 5

ZADANIE 1

find ~/ -maxdepth 1 -mtime -10 -type f

ZADANIE 2

find / -name \*config\* -type f 2> /dev/null

ZADANIE 3

find . -path '*/.git/*' -prune -o -print

ZADANIE 4

find /etc\(-type d -and ! empty\) -or \(-type f -and -name a*\) 2> /dev/null

Laboratorium 6

ZADANIE 1

grep . {1,} plik.txt

ZADANIE 2

grep ^[0-9] pl*

ZADANIE 4

grep -c bash /etc/passwd

ZADANIE 5

grep [IVXLCDM] plik.txt

About

zadania

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%