Posts

Showing posts with the label documentation

Linux puter info.

Image
What's on your Linux computer. Just a simple batch file to collect information about your computer.  A bit dated and there are probably some commands that should have been included, but a good list of commands you can use to find out about your linux box. You will need to remove the "#" in front of some of the commands for them to work. You have to install some of the commands for them to work. You do not have to use all the commands like I did, but it will be interesting to see what is in the file generated. Great for documentation about the system. Good list to have for insurance purposes. usage: sudo ./hwinfo2file.sh filename $ sudo ./hwinfo2file.sh My_desktop_computer_info hwinfo2file.sh [code] echo "=================================" >> $file cat /etc/hostname >> $file cat /etc/hostname echo "getting stats" file=$1.txt # file="system.txt" echo " " > $file echo "=========================...

Record your command line..

Image
Sometimes every once in a while, you find an old generally unused command, but now you find it is very valuable. One such command is know as ttyrec. As the name suggests, you can probably record what is typed at the terminal.   This is excellent for documentation purposes. It is a must for people who do any amount of work on the command line.  An example: recently did a remote install of Arch linux on a remote machine.  It would have been nice to have a record of all the work done. # sudo apt-get install ttyrec Well how do you use it? There are actually two parts of the system. ttyrec does the recording and ttyplay  will playback what you have recorded.  So you will want to invoke ttyrec with a filename (for later playback,) which will generate a new shell or prompt.  Go ahead and type in the commands you want to do, then when you are finished, use <control>d to exit the the recording. You will see the word exit to confirm the exit of the tty...