Basic Linux Commands
Modes of Operation
The linux operating system used for the PARTICLE DAQ system can be used either in a terminal mode where you type commands or in a Windows Explorer style graphical user interface (GUI). The Explorer-like GUI can be used for file manipulation functions (e.g., copying a file to a floppy) or deleting or moving files on the disk. It cannot be used to run the PARTICLE DAQ itself. To begin using the Explorer-like GUI, double click on the icons on the Desktop. For the most part, Explorer mode will be familiar from Windows or MAC OS, so with a few exceptions, this information will not focus on this. Where something is much more easily done from Explorer mode, it will be highlighted here. To begin working in the terminal mode, you will need to open a terminal. This can be accomplished by clicking on the terminal icon in the bottom icon bar, by using the main menu (footprint icon in lower left of bottom icon bar) System Tools -> New Terminal.
The Manual (terminal mode)
mn a
This command brings up the online Unix manual. Use it on each of the commands below.
For Example:
mnpd a w
You will see the manual for the pwd command.
Accessing files in Folders (Directories) in terminal mode
pd w
Shows what directory (folder) you are in. In Linux, your home directory is /home/particle
· Let's suppose you have several data files (data1, data2 ... etc.) in a directory called muondata. · Then suppose the directory muondata is an entry in your main home directory, /home/particle . · If you are in your home directory (where terminals start) and type pwd, you will see /home/particle. · If you were in the muondata directory, pwd would give you /home/particle/muondata instead · The last slash after a directory name is optional. As you can see, each slash (/) indicates another sub-directory. c d Changes directories. Examples of relative movement among directories: c modt d unaa Moves down from your current directory into the...