Предмет: Информатика,
автор: poku19
Два задания на Линукс. Помогите пожалуйста
1. Create empty file and check the access time using ls command with proper option. Update the access time to the current time. Update access time to the beginning of the day.
2. Create empty file testFile and directory testDir. Try to remove both file and directory with one command. Make sure that there will be error when directory will be removed and that removal of the file will result in text output. Redirect successful deletion message to one file and error message to another file. Repeat this actions but redirect both stdout and stderr channels to the same file.
Ответы
Автор ответа:
0
Ответ:
A)
1) touch emptyfile
2) ls -g
3) cat emptyfile
4) touch -a -m -t 203710141103.24 emptyfile
B)
1) touch testFile
2) mkdir testDir
3) rm ./* 1> ./stdout.txt 2>./stderr.txt
4) rm ./* &> ./stdouterr.txt
Похожие вопросы
Предмет: Қазақ тiлi,
автор: nikitosdosvidos9159
Предмет: Литература,
автор: lena3589
Предмет: Математика,
автор: viktoriyahod1283
Предмет: Биология,
автор: Аноним
Предмет: Алгебра,
автор: Minoysi