Misc. Red Hat Linux Commands

rpm -qpl rpmfile
lists the files in an rpm file

grep keyword file
searches for keywork in the specified file

rm -rf directry
deletes the specified directory without questions or quibbles.

locate -u
builds locate database

mount -t iso9660 -o ro,loop=/dev/loop0 /tmp/cd.img /mnt/test/
Test-Mount a CD Image

xhost +host
allows remote host to display xwindows on your machine (security risk)

xhost – && xhost +localhost
make secure again

mount -t smbfs -o username=user //16.100.50.1/fileshare /mnt/mymountpoint

mounts a remote windows share to local mount point.

This entry was posted in Linux. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s