Subweb Home
MySQL
UNIX
Windows
Useful UNIX Commands
General

Here's a small number of UNIX commands that might prove useful again one day. Or maybe not.

CommandComment

find ./ -print | xargs grep <searchstring>

Recursive grep. Find the search string in all files in current directory and below.

mv <oldfilename> <newfilename>

Rename a file.

ls -ltrFAR

Recursive directory listing.

find ./

Alternative directory listing.

ls | wc -l

Count files in directory.

rpcinfo -p

Show Remote Procedure Call infomation.

diff -b <file1> <file2>

Find differences between two files.

diff -lrs <dir1> <dir2>

Find differences between directories.

chmod 755 <file>

Change file permissions.

chmod -R o+rwx,g+rwx,u+rwx <file>

Alternative change file permissions.

chown <newowner> <file>

Change file owner.

chgrp <newgroup> <file>

Change file group.

passwd

Change user password.

ping <ipaddress>

Check network connection.

find . -name <wildcardfilespec>

Find file by file name.

ln -sf <dirname>

Create a directory link.

rm <dirname>

Remove directory link.

MON-10-NOV-2003