Check File Size Command on Linux
The “ls” command is the first command came into the my mind which used for files or directory listing on Linux. Beside that, you can try still check file size on Linux as show below:
- ls -l FILENAME|/bin/awk -F” ” ‘{print$5}’
- ls -l FILENAME | cut -d ” ” -f 5
- du -b FILENAME
- stat -c%s FILENAME
- cat FILENAME |wc -c
Possibly Related Posts:
- How to add Dell PERC Drivers into VMware Converter Cold Clone ISO
- Top 10 Free Anti Virus
- How to Install Webmin on OpenFiler
- Microsoft SQL 2008 Agent not starts
- VMware Workstation 7 Serial Key
How to Modify Linux Kernel Semaphores Parameters
Oracle, DB2 or SAP uses UNIX/Linux resources such as shared memory, swap space, and semaphores extensively for interprocess communication. If the kernel parameters settings are insufficient, you will experience some problems during installation and/or instance startup.
Basically this post will focus on “How to modify Linux Kernel Semaphores parameters”.
Semaphores can best be described as counters which are used to provide synchronization between processes or between threads within a process for shared resources like shared memories. System V semaphores support semaphore sets where each one is a counting semaphore. So when an application requests semaphores, the kernel releases them in “sets”. The number of semaphores per set can be defined through the kernel parameter SEMMSL.
1)Show current SEMAPHORES parameter
server01:~ # ipcs -l
—— Semaphore Limits ——–
max number of arrays = 1024
max semaphores per array = 1250
max semaphores system wide = 256000
max ops per semop call = 100
semaphore max value = 32767
OR
server01:~ # cat /proc/sys/kernel/sem
1250 256000 100 1024
OR
server01:~ # cat /etc/sysctl.conf
kernel.sem = 1250 256000 100 1024
Possibly Related Posts:
- How to add Dell PERC Drivers into VMware Converter Cold Clone ISO
- Top 10 Free Anti Virus
- How to Install Webmin on OpenFiler
- Microsoft SQL 2008 Agent not starts
- VMware Workstation 7 Serial Key
Linux Timezone Etc
Referring to my previous post How to configure timezone on SLES Linux, one of my friend asked me how to configure GMT+1 on SuSE Linux.
Some of you may confused and choose Etc -> GMT+1 from YAST or /usr/share/zoneinfo/Etc/GMT+1.
Possibly Related Posts:
- How to add Dell PERC Drivers into VMware Converter Cold Clone ISO
- Top 10 Free Anti Virus
- How to Install Webmin on OpenFiler
- Microsoft SQL 2008 Agent not starts
- VMware Workstation 7 Serial Key
How to set Auto Complete “service” command on Redhat
I have been using SuSE Linux for some time and I love SuSE Linux service script that activated with a symbolic link. In order to start a SSH service, I can easily issue a command “rcsshd start”.
For Redhat or Centos Linux, you’re require to type command such as “service sshd start” and the main problem is NO auto complete for service command by default. Yes I admitted I’m lazy guy!
So how to set AUTO COMPLETE “service” command on Redhat/Centos?
Type:
complete -W "$(ls /etc/init.d/)" service
Read more
Possibly Related Posts:
- How to add Dell PERC Drivers into VMware Converter Cold Clone ISO
- Top 10 Free Anti Virus
- How to Install Webmin on OpenFiler
- Microsoft SQL 2008 Agent not starts
- VMware Workstation 7 Serial Key
Setup a Linux Highly Availability NFS servers
In this tutorial I will describe how to set up a Linux Highly Availability(HA) NFS servers using SuSE Linux Enterprise Server 10 SP2. In order to make Linux HA NFS failover work, you’re require “sm-notify” utility, basically sm-notify will send out Network Status Monitor(NSM) reboot notifications.
Here are the steps to prepare automated NFS failover.
Server setup details:
Hostname: ServerNFS01
IP Address: 10.10.10.11
Hostname: ServerNFS02
IP Address: 10.10.10.12
Linux HA Virtual Hostname: servernfs01
IP Address 10.10.10.10
NFS Client Hostname NFSclient01
IP Address: 10.10.10.13
Require RPM:
nfs-utils
util-linux
heartbeat
portmap
The /data directory is a Linux HA share drive sitting on /dev/sdb1(ext3) and contains NFS share drive.
Read more
Possibly Related Posts:
- How to add Dell PERC Drivers into VMware Converter Cold Clone ISO
- Top 10 Free Anti Virus
- How to Install Webmin on OpenFiler
- Microsoft SQL 2008 Agent not starts
- VMware Workstation 7 Serial Key
