BugTag

Differences between revisions 4 and 5
Revision 4 as of 2008-08-24 03:26:19
Size: 1083
Editor: martin0641
Comment:
Revision 5 as of 2008-09-19 23:32:32
Size: 1024
Editor: martin0641
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
1) To search your entire drive for the string "happy", use the following command:
    '''sudo find / -name "*happy*"
1) To mount an NFS share via IP, use the following command:
    '''sudo mount.nfs 10.0.0.1:/path/to/share /path/to/mount/point
Line 8: Line 8:
2) To find files in the current folder with the "xml" extension and append the .old extension to them, use the following command:
    '''find -name "*.xml" -exec mv '{}' '{}'.old \;
2) To mount an NFS share via hostname, use the following command:
    '''sudo mount.nfs hostname:/path/to/share /path/to/mount/point
Line 11: Line 11:
3) To Unrar all archives in the current folder into their own folder, use the following command:
    '''for x in *.rar; do mkdir "${x%.rar}" && cd "${x%.rar}" && unrar x "../$x" && cd ..; done
3) To mount an NFS4 share via IP with verbose and read-only modes enabled, use the following command:
    '''sudo mount.nfs4 -v 10.0.0.1:/path/to/share /path/to/mount/point

This is a ManXample entry for the "****" command.

This is the area to propose additional strings, comments, tips, work-flows, examples, and reference for commands and daemons. ManXamples will be added to the bottom of the official manpage entries the following standard format, so people can always find them and the listings are uniform. Please look at the commands listed before adding more, so work is not duplicated. If needed, simply add a function to an existing command if it adds significant value without complicating the spirit of the original example.

1) To mount an NFS share via IP, use the following command:

  • sudo mount.nfs 10.0.0.1:/path/to/share /path/to/mount/point

2) To mount an NFS share via hostname, use the following command:

  • sudo mount.nfs hostname:/path/to/share /path/to/mount/point

3) To mount an NFS4 share via IP with verbose and read-only modes enabled, use the following command:

  • sudo mount.nfs4 -v 10.0.0.1:/path/to/share /path/to/mount/point

ManXamples/BugTag (last edited 2008-09-19 23:33:02 by martin0641)