Type only what's in bold. Files downloaded from this site are files we have had success with and tested with. Updated versions can be obtained from the accompanied download sites. Any scripts written are written for the specific files on this site
|Command Help||Download full LINUX command help document|
At your Linux prompt type the following command
find / -name FILENAME -print
FILENAME = the file you are looking for
The / is to search the whole drive.
If you want to search only the etc directory then use.
find /etc -name FILENAME -print
If you want to use wild cards then the *FILENAME should be in "*FILENAME"
find / -name "*FILENAME" -print
if you want to check if squid is running type the following
ps -ef | grep squid
Substitute squid with the other processes you are looking for. e.g. smtpd or httpd
If you want to check what route exist on the server type the
To check for files type the following command
To check for files with all details type the following command
Change to the directory where the file is. of which you want
to change the ownership.
chown NEWOWNER FILENAME
FILENAME = The filename you want to change ownership of.
NEWOWNER = The new owner of the file.
e.g. For this exercise FILENAME = hosts and NEWOWNER = root
Type the following command
chown root hosts
Adding a remote printer (print server) you need to use the lpadmin command.
The lpadmin options are listed below
A simple command to add a print server
lpadmin -p printername -o dest=IP Address -v dest=/dev/null
the following must be done after adding this printer
To test if the printer is working
lp -dprintername /etc/hosts
Make sure that the printername and IP Address is listed in the /etc/hosts file