Articles in Commands & Shells
Working with ISO images on Solaris
The following two commands will take all data in /home/neal, copy it to the ISO file, and burn the ISO file to a recordable CD.
Using rsync to copy files
In the following example we need to make sure that /export/home on server host2 looks exactly like /export/home on host1. Thus, our SOURCE is host1:/export/home and our TARGET is host2:/export/home
There are two ways of using …
Using GNUPlot to chart MySQL data
The following Korn shell function connects to a MySQL database and extracts specified data, which is then plotted as a function of time using GNUPlot. Using correct syntax is critical. Note the use of single- …
Database operations with SQL and Korn shell
The following Korn shell function will read the a directory containing CSV data files named server_sysstat.20051119.csv with format:
Unix Commands Summary
awk/nawk [options] file scan for patterns in a file and process the results
cat [options] file concatenate (list) a file
cd [directory] change directory
chgrp [options] group file change the group of the file
chmod [options] file change file …
Moving filesystems with ufsdump
to move /opt on new partition (disk or file system)
1) from system prompt: format –> partition –> label
2) newfs -v /dev/dsk/c0t1d0s1 (target location)
3) mkdir /new_dir
4) mount /dev/dsk/c0t1d0s1 /new_dir
5) cd /new_dir
6) ufsdump 0f – /opt | …
Copying directories using tar and rsync
In this example we use the tar command to copy the contents of the /export/home directory to /temphome. This particular syntax forgoes the creation of an actual tarball file. This can be useful if you …
Count users with “last”
Here is a quick example showing how to count users logged in on a particular date using the “last” command on Linux.
To display file’s modification, last access, etc
Display a file’s modification, last access and other attributes on Solaris.
Create tarball
The Unix tar command creates an archive of files and directories while preserving directory structure, file permissions and ownership information. This command is ideally suited for creating backups of most types of data. Many open-source …
Check if Solaris supports 64-bit applications
How to determine if your installation of Solaris supports 64-bit applications.
Copy directory structure and files with cpio
A basic command to copy directory structure and contents using cpio.
Using FTP with pipes
All The Reasons Pot Is Good For You
AP/Damian Dovarganes
Colorado and Washington both passed legislation that legalizes the recreational use of marijuana on Tuesday.
While recreational marijuana is controversial, many people believe that the drug should be legal, especially …
Create TAR and pipe through gzip
A simple example of creating a gzip-compressed tar archive of the current directory.

Latest Comments