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!
#!/bin/bash
LOG="system_report.txt"
echo "User: $(whoami)" > "$LOG"
echo "Directory: $(pwd)" >> "$LOG"
date >> "$LOG"
#!/bin/bash
mkdir -p tmp
touch tmp/a.txt tmp/b.txt
COUNT=$(ls tmp | wc -l)
echo "Files: $COUNT"
#!/bin/bash
read -p "Enter name: " NAME
echo "Hello, $NAME"
echo "$NAME" >> names.txt
#!/bin/bash
DIR="reports"
mkdir -p "$DIR"
df -h > "$DIR/disk.txt"
free -h > "$DIR/memory.txt"
#!/bin/bash
for FILE in *.log; do
echo "Processing $FILE"
grep -i "error" "$FILE"
done
#!/bin/bash
if [ -f "config.txt" ]; then
cat config.txt
else
echo "config.txt not found"
fi
#!/bin/bash
NAME="student"
mkdir -p "$NAME"
touch "$NAME/info.txt"
echo "Created for $NAME" > "$NAME/info.txt"
#!/bin/bash
mkdir -p backup
cp *.txt backup/ 2>/dev/null
echo "Backup completed"
ls backup
#!/bin/bash
FILE="users.txt"
touch "$FILE"
echo "admin" >> "$FILE"
wc -l "$FILE"
#!/bin/bash
mkdir -p logs
date > logs/run.log
echo "Started" >> logs/run.log
ls -l >> logs/run.log