8/24:
———–
Some pretty basic tips, but these are some things I’ve picked up randomly while working with Unix/Linux.

In Solaris, you can get the total amount of installed memory by using the following command:

# prtconf | grep 'Memory'
Memory size: 32768 Megabytes

There is also a lot of other output, but it’s mostly Greek to me … here’s some info from the man page, including the various arguments you can pass.


DESCRIPTION
The prtconf command prints the system configuration informa-
tion. The output includes the total amount of memory, and
the configuration of system peripherals formatted as a dev-
ice tree.

OPTIONS
-P Include information about pseudo devices. By default,
information regarding pseudo devices is omitted.

-v Specifies verbose mode.

-F (SPARC only). Return the device pathname of the con-
sole frame buffer, if one exists. If there is no frame
buffer, prtconf returns a non-zero exit code. This
flag overrides all others, and returns only the name of
the console, frame buffer device or a non-zero exit
code. For example, if the console frame buffer on a
SPARCstation 1 is cgthree in SBus slot #3, the command
returns: /sbus@1,f80000000/cgthree@3,0. This option
could be used to create a symlink for /dev/fb to the
actual console device.

-p (SPARC only). Displays information derived from the
device tree provided by the firmware (PROM).

The equivalent to “top” in Linux is “prstat” in Solaris. An argument of -a add more information on the bottom of the output with per-user information regarding number of processes, amount of swap in use, memory and CPU consumption, and CPU time.

VI: When you delete a line it gets placed in the buffer and is able to be pasted after the cursor by pressing “p”. An upper case P will paste it before the cursor. A great VI quick reference is located here.

———–
8/25:

I was wondering why an SCP wouldn’t work up when I tried to refer to it by hostname, but it would with IP. So I checked the nsswitch.conf (/etc/nsswitch.conf) and noticed the “hosts” entry only listed “files”. Added “dns” and all is well. Pretty simple thing I learned a while back but might not be completely obvious to new users. :)

———–
8/28:

Find disk hogs:
du -k | sort -nr | head -5
In English: “Show me disk usage, then sort that output numerically and in reverse (-nr), and only give me the top 5 results (head -5).

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>