To delete a file in a Unix-like operating system, you can use the rm command. Here’s how to do it:
rm filename.txt
Replace filename.txt with the name of the file you want to delete. This command will permanently remove the specified file. Be cautious, as there is no confirmation prompt by default.
