Delete files with non-standard names in Linux
You have accidentaly created a file with a non-standard name. For example, a file named –help. You can delete it with rm — –help or rm ./–help
You have accidentaly created a file with a non-standard name. For example, a file named –help. You can delete it with rm — –help or rm ./–help
Using the command line can save you time. Say you want to archive all the .DOC files from your entire /home directory. Use locate .doc | grep /home/ | zip arhivate -@ to obtain an archive of these files.
To quickly rename a large number of files in Linux using the command line, use rename. rename ‘s/\.jpg$/.gif/’ *.jpg will transform all the extensions of JPEG files into GIF.
In Linux, if you want to see what files from your /home folder belong to your user account, you can launch the ls -alFG $HOME command.