Different ways to delete content of file in Linux without deleting the file itself.

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • In this video, I have explained different methods of deleting the content of the file in Linux without deleting the file itself.
    1) Deleting content of file using /dev/null
    2) Deleting content of the file using True redirection
    3) Deleting the content of the file using the redirection operator
    4) Deleting content of the file using the echo command
    5) Deleting content of the file using truncate command

Комментарии • 5