Tag Archives: solaris

Solaris GNU Utilities

unix linux

Most of the Solaris utilities (eg. find, grep, awk, sed) are sort of crippled when compared to their GNU counterparts. The GNU versions of the utilities are relatively flexible, in the sense that they most often support additional useful features.

Get Route Details for a Destination on Linux

To verify routing entries for a destination IP on a Solaris machine, I typically use the route get command. This will give the source IP address and Ethernet interface used by the kernel to reach the specified destination. On Linux however, the route utility does not support the get sub command.

Create a tar.gz File in a Single Command in Solaris

Solaris does not ship with the GNU tar and by default, the tar command in Solaris does not allow you to create gzip or bzip2 files, but only pure tarballs. You will need to create a tar file first and then compress the tarball with the gzip command.

Enable IP Routing On Solaris

IP routing or IP forwarding is the process of routing packets between the network interfaces on a system with routing capabilities. While routing is usually the job of a network router, a server running on any recent version of UNIX can perform this action as well.

Switch Between 32-bit and 64-bit Kernel in Solaris

Solaris, by default, loads a 64-bit kernel during boot up, if the hardware supports it.

If, for whatever reason, you need to load Solaris in 32-bit mode, the following commands can be used to switch between the 32-bit and 64-bit kernels.