EQX Server Manual
Page 32 Revision 2.2
5. APPENDIX: LINUX CRASH COURSE
The following is an introduction to common commands used when working with an EQX server.
5.1. Command Line Tips
• User can often use <TAB> to quickly complete a partially typed command
• Paths/directories use a forward slash ’/’ rather than a back slash ’’
• Use ssh to connect to other servers
• Use less to view file contents
• Use nano to edit files
• Use ls to list directory contents
5.2. Useful Linux Commands
If assistance is required for a particular command, enter the command name followed by --help at the
prompt and press enter. For example, typing dpkg -- help will provide more information on how to use
dpkg.
init.d
Files under /etc/init.d are used to start and stop services on the host computer.
mount and umount
Mount is used to add devices to the file system. Most commonly this will be used to access a USB key.
Before removing the USB key you should mount the mounted directory to your USB device.
Make a directory in the /mnt directory
Mkdir /mnt/usb
When the USB drive is inserted it will be installed to sdaX (typically sda1), use this to mount the drive:
mount /dev/sda1 /mnt/usb
Show the contents of the mounted drive:
ls /mnt/usb
Result:
bin Desktop dotfiles log patches src typescript worklog
Unmount the USB drive and remove it:
umount /mnt/usb
ifconfig
ifconfig shows network interface configurations, therefore it is useful for checking IP addresses.
dpkg
dpkg shows you the current version of a piece of software: