logo

Crowdly

Browser

Add to Chrome

Архітектура комп'ютера та операційні системи

Looking for Архітектура комп'ютера та операційні системи test answers and solutions? Browse our comprehensive collection of verified answers for Архітектура комп'ютера та операційні системи at virt.ldubgd.edu.ua.

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

40. Що робить цей скрипт?

#!/bin/bash

LOG="system_report.txt"

echo "User: $(whoami)" > "$LOG"

echo "Directory: $(pwd)" >> "$LOG"

date >> "$LOG"

View this question
39. Що робить цей скрипт?

#!/bin/bash

mkdir -p tmp

touch tmp/a.txt tmp/b.txt

COUNT=$(ls tmp | wc -l)

echo "Files: $COUNT"

View this question
38. Що робить цей скрипт?

#!/bin/bash

read -p "Enter name: " NAME

echo "Hello, $NAME"

echo "$NAME" >> names.txt

View this question
37. Що робить цей скрипт?

#!/bin/bash

DIR="reports"

mkdir -p "$DIR"

df -h > "$DIR/disk.txt"

free -h > "$DIR/memory.txt"

View this question
36. Що робить цей скрипт?

#!/bin/bash

for FILE in *.log; do

echo "Processing $FILE"

grep -i "error" "$FILE"

done

View this question
35. Що робить цей скрипт?

#!/bin/bash

if [ -f "config.txt" ]; then

cat config.txt

else

echo "config.txt not found"

fi

View this question
34. Що робить цей скрипт?

#!/bin/bash

NAME="student"

mkdir -p "$NAME"

touch "$NAME/info.txt"

echo "Created for $NAME" > "$NAME/info.txt"

View this question
33. Що робить цей скрипт?

#!/bin/bash

mkdir -p backup

cp *.txt backup/ 2>/dev/null

echo "Backup completed"

ls backup

View this question
32. Що робить цей скрипт?

#!/bin/bash

FILE="users.txt"

touch "$FILE"

echo "admin" >> "$FILE"

wc -l "$FILE"

View this question
31. Що робить цей скрипт?

#!/bin/bash

mkdir -p logs

date > logs/run.log

echo "Started" >> logs/run.log

ls -l >> logs/run.log

View this question

Want instant access to all verified answers on virt.ldubgd.edu.ua?

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

Browser

Add to Chrome