find grep ln

The find command allows you to search for lost files and directories by name. Given a file or directory name (which may contain wildcard), it produces a list of the full path names for every match it finds:

The grep (global search for regular expression and print) command searches the contents of files for the occurrence of a given string. The string may contain wildcard characters.

You can link a new file name file2 in your current directory to an existing file called file1 by using the ln command:

ln path1/file1 file2

You can rename a link name with mv and delete a link with rm the same way as for a real file name. If you made a soft (using the -s switch) link to another file system which the owner subsequently deletes, you are left with a dangling link which you can't access. Just delete it.


This page's parent within this Web Site. About this Web Site. Its home page. Email its Author.