Linux Notes

Hard links:

ln /path/file1 /path/file2

Associates one physical file with another name (file2). Both access the same file. Can’t be used with directories. Can’t cross file system boundaries.

Soft (symbolic) links:

ln -s /path/source /path/alias

Creates an alias to a file. Can be used with directories. Can cross system boundaries. Doesn’t update if file deleted or moved.

Misc. Commands:
chown [owner] file
chgrp group file

chown/chgrp on a symbolic link (use -h):

chown -h myuser:mygroup mysymbolic

 Find files over 100m:

find . -type f -size +100M
This entry was posted in computing, linux. Bookmark the permalink.

Leave a Reply