If you are not a UNIX user/not a geek, please turn away right now. Every year, I either chance upon something new, or remind myself of something interesting that I’ve forgotten. This is the latter case. On a *NIX shell, you can push a foreground process to background (obviously without terminating it): $ ./someprocess ... ... ... Ctrl-Z [1]+ Stopped ./someprocess $ bg [1]+ ./someprocess & To bring the process into foreground:
Read MoreUnix: removing duplicates from a file
Over the last few months, I have re-discovered some unix commands (it’s been such a long time) Eliminate duplicate lines from a file #sort -u filename > filename.new List all lines that do not match a condition #grep -v ajsk filename Copy contents of two files to one #cat file1 file2 > file3 Append output of a command to a file #cat file1 >> file2
Read Morecvs - Getting list of files changed in the current tree
The simple way to retreive the list of changed files would be to update the tree, which would then list the files updated. #cvs update . > filelist.dat The problem with this, is that if there have been changes to other files after your last update, you will have to manually glean the files that you have changed. I tend face this, particularly during the last couple of weeks before a release, since you don’t want to risk updating your tree everyday, but still have to make 2/3 checkins.
Read MoreUnix: how to check system configuration on solaris
I had to compare machine hardware today, and found information on that here. **#prtdiag -v - **Gives hardware information about FSB, Sparc Model, CPU speed, RAM, Harddisks, USB drives (ie. PCI and networking slots) etc. Click on the image below, for a detailed overview of prtdiag’s output #psrinfo -p - lists number of physical processors . #psrinfo -p -v - list number of virtual processors (cores) per physical processor.
Read More