TIME NOW
World current time now,
CALENDAR
Calendar monthly, yearly
login CONVERT LENGTH
login CONVERT TEMPERATURE
login DICTIONARIES, LISTS
login SCIENCE EDUCATION RELIGION
login WORK CALCULATOR
login CALCULATE LIFE

Quizzes, tests, questions, answers


 

Quizzes. IT. Linux bash commands, administration, programming quiz

Questions 7. Errors? Write to [email protected]
 
1. What does this Linux command do?
date > data | echo OK || data | echo OK || echo not OK?
 Creates file, writes date to file and prints "OK"
 Creates file, writes date to file and prints "not OK"
 Prints on screen date and "OK"
 Prints on screen date and "not OK"
 Prints on screen date, "OK" and "not OK".
2. What does this Linux command do?
who | wc -l | tee who
 It creates file and writes amount of active terminals into file
 It creates file and writes amount of active terminals into file; It pints this on screen
 It creates file and writes amount of active terminals into file; If command unsuccessful, results are printed on screen
3. What does this Linux command do, when running second time?
rm file1 && echo file1 deleted || cal > file1 | echo file1 created
 It creates file, writes calendar of current month and prints "file1 created";
 It deletes file and prints "file1 deleted"
 It creates file , writes calendar of current month iand prints "file1 created"; after that it deletes created file and prints "file1 deleted";
 It prints calendar on screen, creates file and prints "file1 created"
4. What does this Linux command show on screen?
echo touch a123 > a1 && echo echo OK >> a1 | sh a1
 "touch a123 > a1" and "echo OK"
 "echo touch a123 > a" and "echo echo OK"
 "touch a123 > a1 && echo OK"
 "touch a123 > a1" or "echo Viskas OK"
 "OK"
5. There are 3 files in ą folder, named "failai","failiukas", "failas". What will be result after command?
rm faila* || echo "Not found"
 There will be all files
 There will be one file "failas"
 There will be two files: "failai", "failas"
 There will be printed on screen: "Not found"
 There will be one file "failiukas"
6. What will be result of this command?
mkdir -p ./bankas ; "rm ./bankas&& echo "deleted" || echo "not deleted"
 It will delete folder and will print "deleted"
 It will not delete folder and will print "not deleted"
 It will delete folder and will not print anything.
 It will not delete folder and will not print anything.
7. What will this command print?
who | grep userName | wc -l


QUOTES:
My mother never saw the irony in calling me a son-of-a- bitch.
Jack Nicholson
Failure is in a sense the highway to success, as each discovery of what is false leads us to seek earnestly after what is true.
John Keats
I came to the place of my birth and cried, ''The friends of my youth, where are they?'' And echo answered, ''Where are they?''
Arabian Proverb