My PDA is full of these tidbits. When I see something useful, or have
to research it myself, I stick it in there. I have them sorted by OS
(AIX, Solaris, Linux) as well.
This is a great idea. When it is posted on the site, I'll memory-dump
my PDA for inclusion.
--
George Toft
CISSP, MSIS
CTO/Computer Security
AGD,LLC
www.agdllc.com
623-203-1760
Ed Skinner wrote:
>
> I have something for the PLUG Website that should be of interest to
> newbies and possbly even old-farts such as myself. For some years I've slowly
> accumulated a list of notes on doing various things in Linux. I think of it
> as my personal "big dummy" list -- it's how to do various things that I don't
> do often enough to memorize. Some of the things go in categories (setting up
> CUPS, printers and printing files in various ways) and some things end up in
> a "one-liners list" of simple, one-line commands for various purposes.
> Some are entries gleaned from this mailing list, by the way. (Thank you!)
> I'm looking for a "good place" on the PLUG website but the content
> crosses the boundary between FAQ (or more likely, "Not So FAQ But Wish I
> Had") and something in the Downloads which, unfortunately, ends up somewhat
> buried and hidden.
> Where do you think it should go?
> Here's a brief sampling:
>
> Abbreviated version
> EdskiHowTo.txt: How To Do Things I Sometimes Forget How To Do
> No warranty, no guarantees, etc...
> Indeed, if you blindly follow the instructions herein, you will almost
> certainly destroy your system. Have Fun!
>
> Add edski (me) to sudo database
> As root, edit /etc/sudoers (should be one there already)
> After the line about root, add a new line (with no leading whitespace):
> edski ALL=(ALL) NOPASSWD: ALL
>
> vi Tricks
> ma # "Mark" the current line as "a"
> 'a # Go to mark "a"
> :'a,. !sort # Alpha-sort the lines between mark "a" and "." (here)
>
> Allow anyone to mount the first USB storage device (such as a digital camera)
> As root
> mkdir /mnt/usb
> Edit /etc/fstab: add the following (but no leading whitespace)
> /dev/sda1 /mnt/usb vfat noauto,user 0 0
> Then, as a normal user
> Ready the USB storage device
> [Put the camera into playback (not record) mode]
> [Maybe wait several seconds before attempting the mount?]
> [fdisk -l /dev/sda1 # (May be helpful?)]
> mount /dev/sda1 # OR mount /mnt/usb
> find /mnt/usb -print # See what's there
> ... whatever (such as "cp /mnt/usb/... elsewhere"
> umount /dev/sda1 # OR umount /mnt/usb
>
> Various single-Line Commands
> INDEX=22; sed -n "${INDEX}p" filename # Print one line from a file
> fdisk -l /dev/hda # (May be informative)
> pushd .; cd elsewhere; do some stuff; popd # go back, can be multi-line
> ( cd elsehwere; do some stuff ) # Equivalent, must be done as one line
> fuser filename # Show PIDs having filename open
> fuser -k filename # Kill processes having filename open
> fuser -k /dev/dsp # Kill processes using sound card
> ps xaf # Show all processes with parentage
> find BB PT -print | zip music -@ # Create music.zip for a Windows system
> a2ps -1 file # Print file (1-up)
> a2ps -4 file # 4-up print file (text, postscript, PDF, whatever!)
> a2ps --portrait --columns=1 filelist # 1-up print lots of files
> a2ps --delegate=off file # Print plain ASCII regardless of content/name
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss