logo

Crowdly

Оперативни системи-2024/2025L

Looking for Оперативни системи-2024/2025L test answers and solutions? Browse our comprehensive collection of verified answers for Оперативни системи-2024/2025L at courses.finki.ukim.mk.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Напишете командна процедура која ќе прима еден влезен аргумент кој ќе претставува име на фајл. Потребно е процедурата да го пополни наведениот фајл со содржините на сите .txt фајлови во истиот директориум за кои корисникот има пермисии за читање (нема пермисии за запишување и извршување). Така што содржината помеѓу два фајла ќе биде одделена со нов ред.

Потребно е да проверите дали е наведен влезен аргумент, доколку не е, испечатете Insert name of file!

Доколку се наведени повеќе од еден влезен аргумент, испечатете Too many input arguments!

Во сите други ситуации, зачувувајте ја содржината на исфилтрираните датотеки во наведениот фајл.

пример bash script.sh total.txt

------------------------------------------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------------------------------------------

Write a command procedure that will receive one input argument representing the name of a file. The procedure should populate the specified file with the contents of all .txt files in the same directory for which the user has read permissions (no write or execute permissions). So that the content between two files will be separated by a new line.

You need to check if an input argument is provided. If not, print Insert name of file!

If more than one input argument is provided, print Too many input arguments!

In all other situations, save the contents of the filtered files in the specified file.

example bash script.sh total.txt

View this question

  1. Креирајте директориум со име results и во него csv датотеки со име OS1.txt и OS2.txt / Create a folder with the name results and in it csv files named OS1.txt and OS2.txt.
  2. Пополнете ги креираните датотеки со податоци за студентите кои го полагале предметот во формат: индекс датум време(минути:секунди) група статус. (преземете ја содржината од линковите) / Fill in the files you created with data for the students that took the exam for the course using the format: index date time(minutes:seconds) group status. (get the content of the files from the links below)
  3. Прикажете ја на екран содржината на креираните датотеки одделно, но и заедно. / Show the content for these files on screen, separately and together.
  4. Креирајте датотека со име total.txt во која ќе ги ископирате податоците за сите студенти од двете датотеки. / Create a file named total.txt that will have the data for all students from both files.
  5. Преместете ја датотеката total.txt во директориумот кој е дете на results, а се вика results_2023. / Move the file total.txt in a folder that is a child of results and is named results_2023.
  6. Избројте колку редови, зборови и знаци има во датотеката results.txt. / Count the number of rows, words and signs in the file results.txt.
  7. Прикажете ги на екран податоците само за студентите кои го започнале студирањето во 2023та година. / Show on the screen the data for the students that have enrolled the Faculty in 2023.
  8. Прикажете ги на екран само индекс, датум, време на студентите кои го започнале студирањето во 2021та година и имаат статус submitted. / Show on the screen the names of the students, date and time that have enrolled the Faculty in 2021 and have status submitted.
  9. Пребројте колку студенти од група А го имаат прикачено (submitted) резултатот во помалку од 30 минути. / Count how many students have submitted the results in less than 30 minutes.

Содржина на фајл OS1.txt / Contents of file OS1.txt - https://courses.finki.ukim.mk/pluginfile.php/269875/question/questiontext/712476/2/982581/OS1_B.txt

Содржина на фајл OS2.txt / Contents of file OS2.txt - https://courses.finki.ukim.mk/pluginfile.php/269875/question/questiontext/712476/2/982581/OS2_B.txt

View this question

  1. Креирајте директориуми со име directory001 и додади датотека со име file123. / Create a directory with name directory001 and add a file named file123.
  2. Напишете команда со која ќе ја прочитате помошната документација за командата cat. Write a command to read the manual for the command cat.
  3. Променете ги пермисиите на фајлот file123 така што истиот може да го читаат и запишуваат само корисникот и неговата група. / Change the file permissions for the file named file123 so that it can be read and written into by the user and the group.
  4. Направете го претходното барање на друг начин. / Do the previous request in another way.
  5. Напишете команда со која ќе добиете информација кој сé е тековно најавен на системот.Write a command to get the info about the users which are currently logged in on the system.
  6. Креирај нов директориум directory002 и копирај ја датотеката file123 во него со ново име file234 / Create a new directory named directory002 and copy file123 into the new directory and change the name of the file to file234
  7. Избришете го директориумот directory001 кој го креиравте во рамки на оваа вежба заедно со целосната негова содржина. / Delete directory001 created in this exercise together with its content.

View this question

Want instant access to all verified answers on courses.finki.ukim.mk?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!