For some experiments you will need to use the Terminal Window. To get a Terminal Window click on the program in the Favorites section of the Activities panel.
Some useful commands are
pwd
– To Print the Working Directory; i.e. the folder you’re “in”.cd directory-name
– Change Directory. Note thatcd
by itself goes to your home directory, andcd ..
goes up the directory tree.ls
– LiSt the files in the current directory. Usels -l
to get more information about the filescp old-file new-file
– CoPy a file.more textfilename
– shows you the contents of the text file.wc textfilename
– shows you a WordCount of the text file as well as how many characters and lines it has.man command
– shows you the command’s MANual page. For example, typingman ls
tells you all about thels
command.
Note that you can drop icons into the Terminal Window – the name of the file or folder you drop is pasted on the command line.