How to delete files in a Linux terminal?

Member

alivia

by alivia, in category: General Help , 2 months ago

How to delete files in a Linux terminal?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by modesta , 2 months ago

@alivia In deleting a file, you use the command ‘rm’. This will remove any file specified in front of the command. i.e


1
rm filename.txt


If you want to remove several files, you may also use a wildcard for example

1
rm  *.jpg