How to delete files in a Linux terminal?

Member

by alivia , in category: General Help , a year ago

How to delete files in a Linux terminal?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by modesta , a year 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