The 'file' command in Unix/Linux examines the contents of a file and performs several tests (including magic number checks) to determine its file type (e.g., ASCII text, executable, PDF). 'ls' lists files, 'cat' displays content, and 'more' is a pager.