Using the tar command on Debian Linux.

The Linux shell offers many ways to compress files for backup. The tar or tape archive program will concantenate many files into one. tar –create –verbose myfile.tar file1 file2 file3 file4tar –create –verbose myfile.tar file1 file2 file3 file4 Then you may use either the gzip or bzip commands to compress the myfile.tar file you have … Read more

Very useful .cshrc file that will also work with the tcsh shell.

Very useful .cshrc file that will also work with the tcsh shell on Linux and UNIX. This gives you a nice prompt and a lovely colored ls output. This .cshrc file requires a .complete file for proper functioning, this is available here: http://www.securitronlinux.com/files/complete.tar.gz. # /etc/csh.login: This file contains login defaults used by csh and tcsh. … Read more

Managing processes with the UNIX command line.

The Linux command-line has many powerful tools for viewing and managing running processes on your UNIX/Linux machine. The lsof command is a very useful command, it will display a list of all open files owned by active processes running on your system. Below is an excerpt from the output this command will give you. root@deusexmachina:/home/neo# … Read more

Tron Legacy UNIX commands revisited.

http://www.securitronlinux.com/uncategorized/tron-legacy-unix-operating-system/. As seen in this posting above, the Tron Legacy movie used computers with a variant of the Solaris UNIX operating system. The ps -ef command works in the FreeBSD UNIX distribution, you need to mount procfs with this command: mount -t procfs proc /proc this will enable the proc file-system. The login -n root … Read more

Using Linux commands to see information about your hardware.

Using the vmstat command to see which hard disk partitions are the busiest is very easy. Use the vmstat -p /dev/sda1 command and your hard disk information will be printed showing the number of reads and writes for each partition. On my Ubuntu system, the /dev/sda1 partition is the busiest. john@deep-thought ~ $ vmstat -p … Read more

Using the UNIX ed editor. The simplest line editor for writing text files.

The ed(1) line editor is a very useful editor for text files on Linux and it is very simple to use. type ed to start it then to add text to an existing text file, type e my.txt. Then a to append text onto the text file. [13:20:35-*-homer@hungry-forest Desktop]$ ed e my.txt 1449 a[13:20:35-*-homer@hungry-forest Desktop]$ … Read more

Problems with Fedora Core 16 and move to Ubuntu 12.04.

I have had a show-stopper bug in Fedora Core 16 that is preventing the distribution from loading. I have tried everything to fix this, to no avail. I am installing a CD of Ubuntu 10.10 which I will then upgrade to 12.04 Precise Pangolin. That will work better than Fedora, hopefully installing updates on that … Read more

Linux and UNIX security compared to Windows and Apple.

Linux and UNIX security compared to Windows and Apple Comparing Linux and UNIX security to Windows and Apple. The OSGUI tech show host has posted a video with 6 reasons why Linux sucks, with one of the reasons being that there are many packaging systems instead of just one. But that is the thing with … Read more

More useful UNIX commands.

Time a UNIX command. the time(1) command will tell you how long it took for a command to execute. ubuntu ~ $ sudo time find / -name dpkg.log /var/log/dpkg.log 0.82user 1.82system 0:34.04elapsed 7%CPU (0avgtext+0avgdata 2260maxresident)k 679328inputs+0outputs (2major+4374minor)pagefaults 0swapsubuntu ~ $ sudo time find / -name dpkg.log /var/log/dpkg.log 0.82user 1.82system 0:34.04elapsed 7%CPU (0avgtext+0avgdata 2260maxresident)k 679328inputs+0outputs (2major+4374minor)pagefaults … Read more

Useful Linux/UNIX commands.

There are many useful Linux commands that are fun to use and can do some very cool things. cat mysongpart2.mp3 >> mysongpart1.mp3cat mysongpart2.mp3 >> mysongpart1.mp3 Using /bin/cat to append the second part of a MP3 file onto the first part, making one large file that will play seamlessly from part one to part 2. vmstat … Read more

Useful *nix information and links.

Linux is not Windows. http://linux.oneandoneis2.org/LNW.htm This is a very good web page that explains the fundamental differences between Windows and Linux. There are many fundamental changes you need to make when making the switch from Windows to a Linux machine, the major changes difference is that Linux is not as susceptible to viruses as Windows … Read more

Tron Legacy UNIX desktop usage.

http://www.omgubuntu.co.uk/2010/09/linux-top-command-used-in-tron-trailer/#dsq-new-post. In the Tron legacy film trailer at 1:12, you can see a terminal displaying the output of the top(1) command, a traditional UNIX command to display the list of running processes. It is funny that the machine is only showing 9 days of uptime though, it should be longer than that. This is like … Read more