Next: B.3.6 Keeping a Copy Up: B.3 Entering Text Commands. Previous: B.3.4 Introduction To Terminal Contents Index

## B.3.5 A Brief List of Linux Text Commands

My recommendation is that you purchase a text that sets out in rather detailed fashion all of the common commands that ship with Linux. Beyond this there are also a set of commands that may be specific to the distribution that you are using and you should consult a manual specific to that.

The listing below are those that I commonly deal with during a Linux session.

Table B.1: Short List of File Commands
What It Does | Command | Sample
List Directory Contents | ls | ls -l /home/ray/*.rpm
Change Working Directory | cd | cd /usr/local/emc
Copy File | cp | cp emc.ini mymill.ini
Move File | mv | mv mymill.ini bobmill.ini
Remove File | rm | rm mymill2.ini
Change File Owner | chown | chown ray mymill.*
Change File Group | chgrp | chgrp operators mymill.*
Change File Permissions | chmod | chmod a+rwx mymill.*
Make a Directory | mkdir | mkdir /usr/local/emc2
Remove a Directory | rmdir | rmdir /usr/local/emc2
View All Contents of File | cat | cat /usr/local/emc/emc.run
View Chunks of File | more | more /usr/local/emc/emc.run

- Note that you will have to own files in order to change ownership group or permissions or you will have to issue these commands as root (su).
- A directory must be empty to remove it with rmdir. An alternative is to use the rm command with -Rf and the directory name starred.

Table B.2: Short List of General Commands
What It Does | Command
Super User Mode | su
Who Am I | whoami
Where Am I | pwd
Drive Free Space | df
Shut Down PC | halt -n
Reboot PC | reboot

Next: B.3.6 Keeping a Copy Up: B.3 Entering Text Commands. Previous: B.3.4 Introduction To Terminal Contents Index