Linux tips for me


X

Start smthg graphical as root (when logged in as non-privileged user):



  • From http://mark.stosberg.com/Tech/tips/freebsd.tips
    # A FIND AND REPLACE TIP
    here's a way to find all the files that contain a pattern and then replace it and make
    backups.
    # recursively find all the files that contain the word header and list the file names
    > grep -rl header *
    # take the resulting list and pass it perl to the find/replace/backup
    > !! | xargs perl -pi.bak -e 's/header/header-full/'
    # note that you've now created some backup files you might want to delete!
    
    Backup files changed in 120 days, less than 20k in size, not containing "cisco" in their names:
    find mythings/ \! -regex '.*cisco.*' -type f -ctime -120 -size -20k -exec tar rf mythings040225-120daze-lt20k.tar {} \;
    
    
    Put this to yer /etc/fstab and say 'mount /mnt/flash; ls /mnt/flash; umount /mnt/flash'
    to see what's in that usb-thingy. This used to work in my good old Debian laptop.
    (Something like scsi emulation or sth should be in kernel. See google if you will.)
    /dev/sda1 /mnt/flash vfat noauto,user 0 0
    
    
    


    Linux/Opie on iPAQ 3660:
  • Ipaq to network through desktop


  • Other