Skip to content

Shell Tips & Tricks


  • In order to disable the system console’s beep on errors and such all you have to do is open up /etc/rc.d/rc.local with your favorite editor and put this line in there: setterm -bfreq 0 . Then save and exit logout and log back in and there shouldn’t be any more annoying noises.
  • To enable the numlock key edit /etc/rc.d/rc.local and put this in there: for i in 1 2 3 4 5 6; do /usr/bin/setleds +num < /dev/tty${i} > /dev/null done That’s it save and reboot the machine now. One thing though this enables the numlock in the first six consoles if you have more than six (aka you have used the trick here which enables 9 consoles) you are going to have to add 7,8, and 9 to the list. (NOTE: This was taken from userlocal.com).
  • Changing the default system editor is not really hard, IF you are using some vi clone. I have concluded that from personal experience and if someone can provide info on how to make other editors work I would appreciate it. All you have to do is type this in a shell prompt: export VISUAL=/usr/bin/vim . Now that is going to be good for only this session if you want to make a permanent change go to /etc/ and edit profile and add the above line in there then log out and log back in and it should be working perfectly. Go to top
  • Ok go to /etc and open fstab in your favorite editor. Now you will see somewhere in there a line like this: defaults or something like noauto,ro. Well all you have to do is add user somewhere on that same line so it would look like this when you are done: noauto,user,ro and defaults,user. Go to top
  • In order to get random quotes at login all you need to do is install fortune.tgz from the Slackware Installation CD, then log off and log back on and it should be working :). Go to top
  • Don’t forget to edit /etc/rc.d/rc.yp and un comment the right commands. Otherwise YP would not be started and you will be stuck wondering what is going on :).Go to top
  • If you are part of a NIS environment and want to change your password you need to follow these steps in order for it to work: mv /usr/bin/passwd /usr/bin/passwd.orig; ln -sf /usr/bin/yppasswd /usr/bin/passwd;mv /usr/bin/chsh /usr/bin/chsh.orig; ln -sf /usr/bin/ypchsh /usr/bin/chsh Go to top
  • When you are setting up NIS make sure to create the file /etc/defaultdomain and add your domain name in there otherwise NIS will complain that it doesn’t have a default domain.Go to top
  • Replace eth0 with the interface youa re interested in: /sbin/ifconfig eth0 | awk ‘/inet/ { print $2 }’ | awk -F ":" ‘{ print $2 }’Go to top
  • To sync your hardware clock to a time server run this(Note that I am using AOLs time server for the example): /usr/sbin/ntpdate 205.188.185.33 && /sbin/hwclock –systohcGo to top
  • To force error checking on all drives on next reboot do: touch /etc/forcefsckGo to top
  • To allow users to use the "shutdown" comand do: 4. Allow normal users to use shutdown: (making it suid) chmod a+s /sbin/shutdownGo to top
  • To untar multiple tar.gz files in one sweep use: for i in *.tar.gz; do tar xzf $i; doneGo to top
  • If you want to access CPAN from your computer without the need of a browser do: perl -MCPAN -e shellGo to top
  • If you would like to change the lilo menu color then add the following to the top of your lilo.conf file(the following makes it blue): Changing the lilo menu color add the below to your lilo.conf: menu-scheme = wb:bw:wb:WbGo to top
  • Ever since slackware 9 they have changed to "nail". So go read up on nail to figure out how to use it :). The basic ommand structure is still the same so you should be able to just replace mailx/mail with "nail" and your scripts should work.Go to top
  • In order to dual boot append these lines (one after another) to your lilo.conf file: other = /dev/hda1 # the partition you wish to boot, table = /dev/hda # the current partition table, label = WinXP # name to boot Go to top
  • This the quick and dirty way of installing SpamAssassin: Install HTML::Parser from CPAN, Download SpamAssassin, unpack it and enter the Mail-SpamAssassin directory and issue: "perl Makefile.PL PREFIX=/usr SYSCONFDIR=/etc; make; make install". Finally you can go to the Software section and download my rc.spammassassin file, put in /etc/rc.d and call it from rc.local.Go to top
  • If you already have spamassassin installed and running you probably want to use it :). Here is how to do it with KMail: If you haven’t configured your MTA to filter incoming e-mail with SpamAssassin the first step is to configure KMail to do this. Filters can be created in KMail with the "Settings->Configure Filters" menu option. Create a new filter with the following options: select "Match any of the following". Select "any header" "contains" "." (a single dot) as the first criterium. Select "pipe through" as the filter action and fill in "spamc" in the input field. Make sure the " If this filter matches, stop processing here" option is disabled. The filter that is configured above pipes each incoming e-mail through spamc. Now we can let KMail move spam mails to a seperate box automatically. Close the filter window and create a new folder named "Spam" in the local folders map. Reopen the filters window and add another filter. Select "Match any of the following". Select "any header" "contains" "X-Spam-Flag: YES". Make sure you use the same case, otherwise the rule will not match. Select "move to folder" "Spam" as the filter action. Finally click "OK" to accept the settings. With these settings KMail marks spam using the spamc command and moves mails that contain the "X-Spam-Flag: YES" flag to a seperate spam folder. One last thing make sure that the two filter from above are the first two filters in your list(aka they have to be at the top), otherwise they will not work as expected.Go to top
  • Ever wanted to convert an RPM to a Slackware recognized package for easier managment? Well you can do it by using "rpm2tgz".Go to top
  • If you are using NFS to share files and if you have the need for remote roots(the root of machines that mount that NFS share) then add the "no_root_squash" option like this: /home/username 192.168.0.1(rw,sync,no_root_squash)Go to top
  • ctrl-l — clear screen ctrl-r — does a search in the previously given commands so that you don’t have to repeat long command. ctrl-u — clears the typing before the hotkey. ctrl-a — takes you to the begining of the command you are currently typing. ctrl-e — takes you to the end of the command you are currently typing in. esc-b — takes you back by one word while typing a command. ctrl-c — kills the current command or process. ctrl-d — kills the shell. ctrl-h — deletes one letter at a time from the command you are typing in. ctrl-z — puts the currently running process in background, the process can be brought back to run state by using fg command. esc-p — like ctrl-r lets you search through the previously given commands. esc-. — gives the last command you typed.Go to top
  • Put this command at the end of /etc/profile and next time you do cd /ect it would take you to /etc(this command checks your spelling and corrects it, thus taking you to the right place even with wrong spelling): shopt -s cdspellGo to top
  • Create a file named backuplist, put the locations and names of the files you want backed up(example: /etc/profile) and then run: "tar cvfzT /tmp/backup.tar.gz backuplist"Go to top
  • If you ever want to check and see who is accessing your filesystem then run(you can replace / with whichever filesystem you need): "fuser -vu" / Go to top
  • If you ever need to zero out a file really fast then run(replace /var/log/messages with the file you actually want truncated): "> /var/log/messages" Go to top
  • If you are tired of having to run "su root" all the time try using "suspend". It works like this: you run "su root" do whatever you need to do, then type "suspend" and you are dropped back to your normal user shell when you need to use the root shell again just run "fg" and you will be back to the root shell.Go to top
  • Ok this depends on your samba version for samba3: "net join -w DOMAIN -U username", for samba2 its: "smbpasswd -j DOMAIN -U username".Go to top
  • If you just run "df" without any switches you get all the information in KBs which is annoying if you want to quickly check how much space is available on a drive. To fix this just run "df -h" and I promise you will be a happier person :). It will give you the information in a human readable format.Go to top
  • Ever wanted to see what the file sizes are in a directory in a nice human readable format? Then try out this: du -h | moreGo to top
Hot NEWS about Tramadol - fedex online tramadol, tramadol no prescription no fees overnigh, purchase tramadol overnight, tramadol bulk no prescription, buying tramadol online without prescription, tramadol online cheap, 180 ct tramadol with, need to buy cheap tramadol and pay by, 180 tramadol cheap with, cheap tramadol no prescription nextday shipping, tramadol online discount, tramadol no prescription needed, 150 tramadol, compounding drugs tramadol, no prescription required for tramadol, tramadol hci, purchase tramadol, tramadol online prescription, 180 tramadol with cod, online tramadol purchase, what is tramadol, Tramadol prescription, tramadol fed ex, tramadol free overnight shipping, medication tramadol, us tramadol, next day delivery tramadol with no script, by money order order tramadol, overnight tramadol hcl, tramadol cheap order by 3pm, tramadol without perscription, cod tramadol delivery, tramadol saturday delivery no rx, tramadol cod, order tramadol no rx, 8000 cheap online tramadol under, how easy is it to buy tramadol online, no prescription needed tramadol, tramadol generic name, tramadol without prescription cheap, tramadol online saturday delivery, tramadol overnight delivery cheap, cheap tramadol without prescription overnight delivery, buy cheap tramadol online inurl, cheap tramadol prescriptions, tramadol no doctor prescription, tramadol no dr contact, Tramadol shipped to florida, order tramadol online by fedex, tramadol saturday, tramadol no prescription required 200 tablets, tramadol 50 mg, buy tramadol for saturday delivery, tramadol order overnight shipping, buy tramadol pay by cod, tramadol cod saturday delivery, discount cheapest tramadol online, buy information tramadol, online prescription tramadol, tramadol on line prescriptions, tramadol ultram, tramadol withdrawals, tramadol cheap easy, tramadol online si, cheap cod online sold tramadol, tramadol rx, online tramadol order, tramadol hcl 50 mg tab, fedex tramadol, tramadol cod overnight delivery, tramadol addiction and withdrawal, online prescription tramadol without, online tramadol no rx, cod online tramadol, buy tramadol cash on delivery, overnight tramadol order, best buy tramadol, buy tramadol 300mg, pain medications tramadol, tramadol overnight delivery, tramadol c.o.d overnight delivery, canada tramadol no prescription, buy tramadol on line, tramadol 150 tablets, tramadol generic names, tramadol cheap overnight, cheapest online tramadol, buy mexico online pharmacy tramadol, tramadol cheap online, drug information tramadol, tramadol cod delivery, cheap discount tramadol 120 pills, tramadol 180 tablets free fedex, drug tramadol tablets, tramadol without a rx, order discount tramadol, tramadol cod pharmacy, low cholesterol diet cheap tramadol, tramadol overnight fed ex, tramadol dosage, tramadol drug addiction, tramadol on line, buy tramadol without prescription pay cod, pharmacies tramadol pay, tramadol dod drug tests, pharmacy tramadol hcl dosing, tramadol no dr, buy tramadol cheap, cheap discount tramadol, overnight buy tramadol, order cheap tramadol no rx online, tramadol orders cod, cheap tramadol cod saturday delivery, 100mg tramadol, purchase tramadol without a prescription, lowest price of tramadol, tramadol pay, tramadol 180 overnight shipping, cheap tramadol saturday delivery, online tramadol overnight delivery, tramadol drug interaction, tramadol with, buy tramadol 400mg, cheap tramadol order, buy cheapest tramadol, Cheap tramadol NO RX, where to buy tramadol, order tramadol cod, tramadol ups c.o.d., tramadol in mexico without prescription, tramadol 4 50mg tablets, cheap fedex tramadol, discount tramadol overnight delivery, cheap tramadol prescriptions online, overnight delivery tramadol purchase, online tramadol buy, online pharmacy fedex C.O.D tramadol, buy now tramadol, pharmacy tramadol, online tramadol without rx, prescription tramadol drug, tramadol online consultation, buy tramadol no prescription, tramadol overnight shipping, cod tramadol no prescription, cheap prescription tramadol without, cheap tramadol fedex overnight, tramadol ups, tramadol cheap discount, tramadol 180 ct cheap, online pharmacy cod tramadol, cheap tramadol c.o.d., tramadol cheap next day, online tramadol with delivery, tramadol online cod shipping, buy drug tramadol, how to get a doctor to prescript tramadol, hydrochloride low cost tramadol, buy tramadol tablets, buy tramadol order cod, buy tramadol discount, order cheap tramadol no prescription, online tramadol no prescription, tramadol fast delivery, online pharmacy tramadol 24 hours, tramadol cod online orders, discount tramadol purchase, hydrochloride tramadol, buy tramadol overnight delivery, tramadol pain medication arthritis, tramadol with no presciption, zantac tramadol, buy no rx tramadol, buy prescription tramadol without, order tramadol online cod, tramadol hcl for anti depression, tramadol drug screen, cheap tramadol overnight, order tramadol online without prescription, low price tramadol no prescription, cheapest tramadol, tramadol drug utilization review, buying tramadol without a prescription, buy tramadol medication cod, order tramadol online, buy discount tramadol now, cheap tramadol next day shipping, tramadol same day delivery, buy tramadol online consultation us, order pharmacy tramadol, online pharmacy fedex cod tramadol, tramadol hydrochloride synthesis, Buy cheap tramadol online, no prescription medications cheap tramadol vallium, tramadol cheap cod, tramadol no prescription overnight cod delivery, tramadol 30 pills x 100 mg, tramadol 100 mg overnight, tramadol 180 tablets, tramadol online discount cheap, tramadol discount codes, buy tramadol apap, buy prescription tramadol, tramadol shipped with, low price tramadol without prescription, tramadol COD next day, buy discount tramadol online, tramadol in us pharmacy pay by, zenegra tramadol prescriptions, tramadol payment, purchase tramadol discount, only tramadol free consult, Buy no prescription online tramadol, tramadol free consultation, Cash on deliver Tramadol overnight, cheap legal tramadol for sale, tramadol online overnight shipping, tramadol without a presciption, information on tramadol, cheap 120 tramadol, Tramadol no prescription pharmacy discounter, california discount pharmacy tramadol, order cheap tramadol online, no rx tramadol, tramadol 120 pills cheap, tramadol 50 mg 100 tablets, tramadol cash on delivery, order tramadol online from mexico, buy tramadol online by, us tramadol fedex, tramadol and effexor, tramadol next day delivery, tramadol shipping, tramadol cash on delivery overnight, overnight tramadol without prescription, cheapest tramadol available online, pharmacies for tramadol pay w phone, buy cheap tramadol 50 mg, order tramadol by, cheap order tramadol, online purchase tramadol, 50 mg tramadol, symptom tramadol withdrawal, order cheap tramadol, order tramadol cash on delivery, tramadol antidepressant, cheap priced tramadol, tramadol free fedex shipping, tramadol online no perscription, tramadol online fedex priority overnight, buy tramadol pay by check, overnight delivery tramadol buy, buy tramadol hcl 50mg, order tramadol hcl with cod, tramadol fedex no prescription, buy tramadol with cod, buy tramadol online with next day shipping, no overnight prescription tramadol, buy cheap tramadol, tramadol saturday delivery, drug tramadol, pharmacies tramadol pay by, Buy tramadol index, order tramadol to uk, delivery online prescription saturday tramadol, buy tramadol online from oregon, tramadol no prescription cash on delivery, tramadol no script required express delivery, buying tramadol without a script, overseas tramadol cheap, tramadol overnight delivery saturday, tramadol drug, tramadol no rx needed cod accepted, tramadol cheap 120 pills, cod tramadol online, cheap order prescription tramadol, buy tramadol without prescription, buy tramadol onlines, online tramadol overnight, tramadol 200 tablets, cheap discount online tramadol, tramadol 50mg, cheap tramadol buy, online pharmacy tramadol, tramadol c.o.d. saturday delivery, buy tramadol drug, cheap tramadol no rx, tramadol 180 pills x 100 mg, tramadol without presciption, Buy Tramadol Online Overnight Fedex Delivery, where can i buy real tramadol online, discount tramadol fast delivery, buy tramadol 100mg, snorting tramadol, overnight delivery tramadol cheap, buy tramadol cheap cod, purchase tramadol overnight delivery, buy tramadol overnight, overnight tramadol cod, cheap tramadol no prescription 180ct, tramadol pay by, overnight tramadol, tramadol hydrochloride zydol, 100 mg tramadol, tramadol cod no script, cheap tramadol free shipping, cheap tramadol very, purchase tramadol without prescription, tramadol fedex shipping, TRAMADOL ONLINE FEDEX COD FREE CONSULT, tramadol overnight no prescription, tramadol prescription from doctors online, tramadol hydrochloride capsules, tramadol drug guide, overnight delivery tramadol discount, Tramadol Cash Delivery Cod, cheapest overnight tramadol, online online tramadol, fedex tramadol online cod, arthritis medicine tramadol, weekend orders for tramadol discount, tramadol 90 pills x 100 mg, get discount tramadol now, buy cheap tramadol here, tramadol order, tramadol online accept paypal, tramadol no rx, buy a tramadol, buy tramadol online no prescription, tramadol india, overnight tramadol no rx, buy tramadol hydrochloride, tramadol delivered overnight, overnight delivery tramadol online, drug metabolism inhibition tramadol, us tramadol cod sales, overnight tramadol online, real tramadol in us pharmacy, tramadol shipped on saturday, tramadol very cheap, tramadol ship to 50 states, tramadol best price, drug hydrochloride inhouse store tramadol, tramadol without rx, no prescription saturday delivery tramadol, tramadol drug medication, buy tramadol with no prescription, tramadol without doctor rx, Tramadol cheap no rx free from india, discount tramadol without rx, cheap tramadol buy online, online order overnight tramadol, tramadol hydrochloride contraindications loratadine, com online tramadol, buy discount tramadol no prescription, tramadol 180, buy tramadol without a prescription online, tramadol ultracet online accept paypal, cheap online tramadol, buy tramadol 37.5/325 Mg, by delivery saturday tramadol, buy tramadol without perscription, discount tramadol, tramadol without prescription, purchase tramadol no rx, purchase discount tramadol, link moveto online tramadol, buy tramadol 37.5, tramadol prescription consultations +, generic tramadol no prescription overnight, tramadol and overnight, cheap compare price tramadol, tramadol xr online, no prescription cheap tramadol, tramadols overnighted cod, tramadol withdraw, tramadol 120 tablets, very cheap tramadol, tramadol fedex overnight, tramadol pay cod, tramadol without a prescription and cod delivery, cheap cod tramadol, buy tramadol cheap medication inurl, phentermine tramadol viagra, no prescription tramadol fedex delivery, purchase tramadol shipping, tramadol pay by cod, tramadol 270 pills x 100 mg, Free Shipping on Tramadol Orders, tramadol and premature ejaculation, purchase tramadol without rx, tramadol 100 tablets, keywords buy tramadol, cash on delivery tramadol, ordering tramadol online, tramadol cod next day, best cheap tramadol, tramadol 60 pills x 50 mg, tramadol cash delivery, online cheap tramadol prescription, tramadol generic fedex no prescription, tramadol no prescription overnight, order tramadol without prescription, pharmacies tramadol cod, tramadol with fedex and no prescription, tramadol florida pharmacy, overnight tramadol purchase, overnight tramadol ups cod, tramadol overnight COD, buy tramadol without a prescription overnight delivery, order tramadol cod saturday, tramadol and prozac interactions, tramadol with free fedex overnight, tramadol online without prescription, cheap tramadol drugs md, online pharmacy no prescription tramadol, cheap tramadol free delivery, next day fedex shipping for tramadol, buy cheap tramadol no Prescription, buy discount tramadol, tramadol shipped, overnight tramadol discount, discount tramadol online, tramadol drug screens, cod tramadol money orders, tramadol cheap overnight fedex, no prescripton tramadol, tramadol perscription on line, cheapest tramadol overnight, pharmacies for tramadol pay, no rx tramadol cod, ultracet tramadol, tramadol cod accepted, cheap tramadol, buy tramadol cheap cod no rx, order tramadol cheap, buy tramadol online cod fast turn around time, tramadol fedex delivery, cheap tramadol over night, buying tramadol cod, is tramadol a narcotic, tramadol buy, overnight tramadol saturday delivery, buy tramadol depression, order tramadol online with cod, no prescription tramadol, cheap prescription tramadol, buy tramadol where, com buy cheap tramadol, tramadol next day cash on delivery, tramadol no consultation fees, buy tramadol online money order, online overnight shipping tramadol, tramadol medicine, buy tramadol 200mg, buy tramadol overnight via electronic check or, buy tramadol online without a prescription, buy tramadol by check, medicine called tramadol, buy 150 tramadol tablets, no prescriptions needed for tramadol, online tramadol cod, by tramadol online for cod, tramodol tramadol 180 tablets, tramadol overnight online, 180 ct tramadol payment options, buy no rx tramadol online, tramadol medicine pay, tramadol 120 pills x 100 mg, tramadol online Cash on Delivery, buy cheap tramadol online, tramadol cheap tramadol, tramadol on line no prescription, cheap tramadol pills online, tramadol 100mg, online tramadol without prescription, tramadol delivery, Tramadol no prior rx needed, tramadol prescription online, tramadol without prescription overnight shipping, tramadol overnight cod, buy cod guestbook.html inurl tramadol, generic tramadol, 180 ct tramadol payment with, cod tablet tramadol, tramadol purchase, 180 tramadol cheap, prescription what is tramadol, buy tramadol money order, doctor online prescription tramadol, tramadol 50 mg tablets, tramadol hydrochloride, online pharmacy tramadol next day, tramadol cod saturday delivery fedex, non generic tramadol no prescription, discount tramadol without prescription, buy tramadol online by cod, Buy cheap Tramadol online, tramadol without a prescription, tramadol online pharmacy, cod cheap tramadol, buy tramadol with paypal, tramadol oxycodone buy fedex, cheap tramadol overseas pharmacy, Tramadol on sale, overnight delivery tramadol, buy tramadol free consultation, tramadol drug no prescription, tramadol no script, buy tramadol from a usa pharmacy without a prescription, tramadol 60 pills x 100 mg, tramadol hydrochloride ultracet, cheap tramadol by money order, next day tramadol, tramadol online free consultation, cheap tramadol no prescription, 180 tramadol tablets with, discount tramadol order, by cod tramadol, generic name tramadol, tramadol no rx overnight, tramadol generic, tramadol 180 cheap cod, Tramadol and description, purchase tramadol online, tramadol cheap price, Tramadol orders C.O.D., tramadol hcl, order tramadol cheap no membership fees no prescription, tramadol online uk, prescription and drugs tramadol injection, online doctor consultation for tramadol, tramadol withdrawal symptom, buying tramadol in us pharmacy, tramadol online fed ex, tramadol cod shipping, tramadol no prescription no consultation, tramadol cheapest online, generic tramadol hcl online, prescription tramadol, tramadol 120 pills x 50 mg, tramadol hydrochloride tablets, cheap tramadol prices usa, without prescription tramadol, Tramadol medication, buy low price tramadol, cheap online pharmacy tramadol, tramadol addiction, pharmacy online tramadol, tramadol hydrocodone 10mg, tramadol 120, buying tramadol online, cheap tramadol 180ct, buy tramadol overnight fedex, Buy cheap tramadol us online, cheap tramadol online, drug testing tramadol, 120 cheap tramadol, buy tramadol online 150 pills, how to get tramadol without, where can i buy tramadol no prescription, tramadol shipped cod, tramadol buy fedex, tramadol medication, tramadol hydrochloride tablet, buy online tramadol, online pharmacies tramadol, buy tramadol cheap medication, tramadol with next day delivery without prescription with free shipping, buying online tramadol, no rx needed for purchasing tramadol, cheap tramadol without prescription, tramadol free overnight cod, tramadol no prescription, shipping tramadol, tramadol pharmacies 200ct cod, tramadol and online, tramadol free saturday delivery, tramadol prescriptions online saturday delivery, tramadol pharmacy, Real tramadol online, zoloft tramadol interactions, fedex overnight tramadol, tramadol online img, tramadol and gabapentin, buy cheap tramadol overnight,