machine% ls -l ~plewis/2021/ETM-*The command 'ls -l' provides a 'long' listing of whatever you specify afterwards. In this case, '~plewis' refers to 'the home of plewis' (here otherwise known as /home/plewis). 2021 is a subdirectory of my plewis' home directory, and there are a bunch of files that start 'ETM-' - the * is a wildcard (meaning ETM_ followed by anything).
machine% cd Data
machine% cd ~/Data
machine% mkdir practical1change directory again (relative to where you are ...)
machine% cd practical1copy a file into the current directory ('.' == 'dot' == current directory)
machine% cp ~plewis/2021/ETM-* .Note that the * symbol is a wildcard, so '~plewis/2021/ETM-*' is all files that start with ~plewis/2021/ETM-. The . ('dot') means the current directory. ~ ('tilde' or 'twiddle') refers to the home directory of a user, so ~plewis refers to the home directory of plewis.
machine% ls -l ~/Data/practical1
tells us that the disk known as /data/prague has 5873616
Kbytes available, for instance. Again, . ('dot') refers to the current
directory/filesystem.
Type:
machine% ls -l
which gives (among other things)
-rw-r--r-- 1 plewis ps 24968838 Sep 23 13:38 ETM-190600.Z
The compressed file (with a .Z extension) is 2374280 bytes (the original was 34200000, so the compression ratio is around 1.4 in this case).
or to uncompress:
machine% uncompress
ETM-190600
You also learnt
what ~, & and . mean.
Thats enough UNIX for one day! If you want to learn more UNIX or just
some more background on workstations, directories etc., have a look at
the MSc remote
sensing course notes.