One of the great things about cat is that you can view the contents of a file with line numbers. You do so using the -n option, as follows: cat -n ~/Desktop/myFile Sometimes a file is too big to view though, so you can pipe the output to less, to combine some of the best features of each: cat -n ~/Desktop/myFile | less Obviously, the same thing would work with more: cat -n ~/Desktop/myFile | less You can also do something similar with the grep command and the -n option: grep -n ^ ~/Desktop/myFile | less Enjoy.
-
-
Locate the Citrix Datastore
There are times in a Citrix environment where you might have servers pointing to different data stores. You then might get confused about what box is pointing to what datastore location. To find out, open Powershell on the Citrix server and run the following command: cat "c:\program files\citrix\independent mananagement architecture\nf20.dsn"
-
Scripting in Google ChromeOS
I recently got my hands on one of those Google ChromeBooks (Cr-48). Interesting to have an operating system that is just a web browser. But, as anyone likely reading this article already knows, the graphical interface is the web browser and the operating system is still Linux. But what version? Well, let’s go on a journey together. First, you need ChromeOS. If you’ve got a ChromeBook this is a pretty easy thing to get. If not, check http://getchrome.eu/download.php for a USB or optical download that can be run live (or even in a virtual machine). Or, if you know that you’re going to be using a virtual machine, consider a pre-built…