HotTo Find Suse Linux Version#

cat /etc/SuSE-release
SUSE LINUX Enterprise Server 9 (i586)
VERSION = 9

mount CDROM#

mount -o loop -t iso9660 /home/novell/Identity_Manager_3_DVD.iso /media/cdrom

Show patch installed on Soalris#

showrev -p | grep 108993

Mount NFS #

mkdir -p /nfs/iso /mnt/iso
mount -t nfs anf-devlnx01:/srv/iso /nfs/iso
mount -t iso9660 -o loop /nfs/iso/Identity_Manager_4.0.2_Linux_Advanced.iso /mnt/iso

SUN OS Ip Setup

Using RPM

Checking the Log File for Invalid SSH Connection Attempts#

grep "Invalid user" /var/log/messages|awk '{print $NF}' | sort|uniq -c|sort -nr|head -n 25

Find and remove files#

WARNING#

Be very careful. You can delete your entire hard disk way too easily.

Linux or UNIX - Find and remove file syntax#

To remove multiple files such as *.jpg or *.sh with one command find, use

find . -name "FILE-TO-FIND"-exec rm -rf {} \;
OR
find . -type f -name "FILE-TO-FIND" -exec rm -f {} \;
The only difference between above two syntax is that first command can remove directories as well where second command only removes files.

More Examples of find command#

(a) Find all files having .bak (*.bak) extension in current directory and remove them:

 find . -type f -name "*.bak" -exec rm -f {} \;
(b) Find all core files and remove them:
find / -name core -exec rm -f {} \;
(c) Find all *.bak files in current directory and removes them with confirmation from user:
find . -type f -name "*.bak" -exec rm -i {} \;

Delete specific Folders#

Delete all files and the folder "thumbs"
rm -ri `find . -type d -name "thumbs"`

rsync#

Some items we have found useful with rsync

More Information#

There might be more information for this subject on one of the following:

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-8) was last changed on 08-Dec-2016 09:18 by jim