### Set OpSys date: date --set="3/6/2002 10:55" # dreambox 18.01.2004 15:30 UTC: date -s "01 18 1530 2004" ### Hardware Clock (CMOS) date: hwclock --set --date="3/6/2002 10:54" ### OS date to Hardware Clock (CMOS): hwclock --systohc file=file_`date +%y%m%d%H%M%S`
#!/bin/bash # vai existee fails if [ -e file?_* ]; then echo Fails ir else echo Fails nav fi
#!/bin/bash
echo "All homes:"
usr=`ls /home`
for u in $usr; do
echo $u
done