Engineering Network Services - CSU

Engineering Network Services

Unix Information

File Commands

These commands allow you to manipulate and control the files and directories on a UNIX machine.

ls Lists the files names in the current directory. Examples.
mv Rename a file. Ex. mv oldfile newfile or mv olddir newdir
cp Copy a file. Ex. cp origFile newFile
chmod Change permissions on a file. Examples.
chown Change the ownership of a file or directory. See File Examples.
chgrp Change the group ownership of a file or directory. Examples.
cd Change directory. Examples.
lpr Print a file. Examples.
pwd Print the directory path of your current location on the file system. Examples.
mkdir Create a new directory. Ex. mkdir newDir
rmdir Delete a directory. The directory must be empty for this command to work.
rm Delete a file. Examples.
compress Compress a file to a very small size. Puts a ".Z" extension on the file name.
gzip Same as compress, but gets it even smaller. Puts a ".gz" extension on the file name
uncompress Uncompress a file that was compressed using "compress"
gunzip Same as uncompress, but for a file compressed using gzip.
tar Package a group of files or directory into a single file. Examples.

layout image
layout image

This document last modified Monday January 25, 2016

Engineering Network Services home page link College of Engineering home page link