Changes

Scratchpaper.txt - the intestinal tract of linux notes

3,331 bytes added, 19:00, 26 June 2007
The following lines were added (+) and removed (-):
''*ipchains are processed in the order read from the top down.  See how IP x.x.x.x is blocked right away.  Also, we accept ssh and pop from another IP address x.x.x.x before the port is blocked 3 lines later.'''''wow, new stuff 2003!'''I want to find out what version of bind you are running: nslookup -q=txt -class=chaos version.bind. <host address>I want to hide from people what version of bind I am running: <nowiki>vi /etc/named.conf</nowiki> <nowiki></nowiki> <nowiki>options {</nowiki> <nowiki>        directory "/var/named";</nowiki> <nowiki>        auth-nxdomain yes;</nowiki> <nowiki>        version "x";</nowiki> <nowiki>};</nowiki> <nowiki></nowiki>It's the version part that allows you to spoof your bind version. nslookup -q=txt -class=CHAOS version.bind. localhostlilo: linux singlegrub: When GRUB boots up, select the version of the kernel that you wish to boot and type e for edit. You will be presented with a list of items in the configuration file for the title you just selected.Select the line that starts with kernel and type e to edit the line.Go to the end of the line and type single as a separate word (press the [Spacebar] and then type single). Press [Enter] to exit edit mode.Back at the GRUB screen, type b to boot into single user mode. server:              client: ntpd -dddd &_        ntpdate addressof.timeserver.com ntpq -p              ntptimesetParse a password file, removing everything but the username [with vi and Regular Expressions] :1,$s/:x:.*false//The central concepts are superblock, inode,data block, directory block, and indirection block. The superblock containsinformation about the filesystem as a whole, such as its size (the exactinformation here depends on the filesystem). An inode contains allinformation about a file, except its name. The name is stored in thedirectory, together with the number of the inode. A directory entry consistsof a filename and the number of the inode which represents the file. Theinode contains the numbers of several data blocks, which are used to storethe data in the file. There is space only for a few data block numbers in theinode, however, and if more are needed, more space for pointers to the datablocks is allocated dynamically. These dynamically allocated blocks areindirect blocks; the name indicates that in order to find the data block, onehas to find its number in the indirect block first.*wrong: STMP = `stty size`:echo $STMP*right: STMP=`stty size`;echo $STMP <nowiki>echo "test"|sed "s/test/cat/"</nowiki> <nowiki>echo "test"|sed "s/.//"</nowiki> <nowiki></nowiki> <nowiki>STMP=`stty size`;echo $STMP|sed "s/.*//"</nowiki> <nowiki></nowiki> <nowiki>screen terminal size:</nowiki> <nowiki>STMP=`stty size`;echo $STMP|sed "s/\ .*$//"</nowiki> <nowiki>STMP=`stty size`;echo $STMP|sed "s/^.*\ //"</nowiki> <nowiki></nowiki> <nowiki>while $null; do echo "hi"; sleep 2s; done</nowiki>he often stops jobs and then forgets about them He uses his prompt to remind himself of stopped jobs export PS1='\W[\j]\$ '  Redhat Linux default prompt:  PS1='[\u@\h \W]\$ ' Trustix Linux default prompt:  PS1='\u@\h \w\$ 'want the complete count <nowiki>function stoppedjobs {</nowiki> <nowiki>-- jobs -s | wc -l | sed -e "s/ //g"</nowiki> <nowiki>-- }</nowiki>
Bureaucrat, administrator
16,192
edits