How do you remove content of a file in Linux?
Experience Level: Junior
Tags: Linux
Answer
Run the following command:
> file.txt
Related Linux job interview questions
How do you display all environment variables in Linxu?
Linux JuniorHow do you configure an alias for a command in Linux?
Linux JuniorHow do you move to the end of the line in Linux terminal?
Linux JuniorHow do you move to the beginning of the line in Linux terminal?
Linux JuniorHow do you search in commands that you executed in past in Linux terminal?
Linux Junior