COX INTRANET

Unix Questions


A few notes about Unix machines -

  1. Everything is CaSe SeNsItIvE - user names, passwords, file names, folder names, and commands.  This means that Suzie, suzie, and SUZIE are NOT the same thing.
  2. Be very careful of what you delete.  Unix boxes do not have a "Recycle Bin" where you can easily retreive deleted files.  When they delete a file, it's really gone!
  3. In most cases, Unix boxes are not sensitive about file extensions.  The Unix server will NOT give you an error message if you change "mydocument.doc" to "thatdocument".  However, without the .doc file extension, Word will not recognize it as a Word document and open it. 
  4. The star (*) is a wild card.  If you type in rm *, it will remove every file in a given directory.
Commonly Used Unix Commands

Command Function Example
ls list contents ls
ls -lart list contents with file properties including normally hidden files. 
(note: be very careful if you edit or remove any file that starts with a period (.) or a tilde (~) )
ls -lart
cd change directory cd mydir
mkdir make a new directory mkdir mynewdir
rmdir remove directory
(note: must be empty first)
rmdir myolddir
rm remove file

(note: use extreme caution if you are using the * with this command)
rm myoldfile
ln -s make a "short cut" ln -s /mydir/mysecondir mynewshortcut
mv move files mv myoldfile mynewfile
mv move directories mv myolddir mynewdir
cp copy files cp myoldfile mynewfile

Q: I''ve renamed my file and now Word, Excel, etc. won't open it.  What do I do?

A: Make sure that you didn't change the file extension.  For Word to open a word document, the file name must end in .doc.  For Excel, it must end in .xls.  If you have changed or removed the file extension, try putting it back and see if that doesn't solve your problem.  


Q: I typed in rm * and all my files are gone!  What do I do?

A: You've just deleted all of your files.  Upload them again.  This is why the note above says to use extreme caution!


Q: I'm trying to set up a short cut to a folder I upload files to all the time.  I've typed in the command, but my shortcut doesn't work.

A: First off, make sure that the folder your short cut is supposed to point to exists and remember, everything is CaSe SeNsItIvE.  If your folder is called MyNewFolder, you will have to type in

ls -s MyNewFolder stuff

in order to create a short cut called "stuff"


Thank You For Visiting !