воскресенье, 29 сентября 2013 г.

Как удалить файл без команды "удалить" в Linux

[ruslan@localhost]$

touch file1 # regural file
touch file2 # we will remove this file by a hint
echo "This is first file" > file1
echo "This is second file" > file2

cat file1
"This is first file"

cat file2
"This is second file"

ls
file1 file2

mv file1 file2

ls
file2

cat file2
"This is first file"

#Where is the second file? Thoughts?

Комментариев нет:

Отправить комментарий