The Open Source Swiss Army Knife

/unix/commandline/
/unix/commandline/ + sub-categories
http://www.sirfsup.com/
web directory content
    
      

Not logged in
Chat Register Login
return to:  http:/www.sirfsup.com      /unix   /commandline 
sub-categories and articles

                                                  
   --->create new sub-category


MD5SUM.txt
add

try http://www.sirfsup.com/cryptography thanks

a2ps.txt
a2ps processes printing from lpr and formats output a little

this program should allow me to print text files from the commandline and fricking WORD WRAP extended lines, oh my god, getting closer to .

at_daemon.txt
add

Controls whether the AT daemon is activated. This daemon enables you to perform tasks periodically. In contrast to the cron daemon, this action is only performed once.

bzip.htm
add

  1. types of compression and who handles them
  2. bzip

cat.htm
add

cat base09.* > base09.tar.gz
cat base09.* | gunzip | tar xvf -

cdburn.htm
add


cdrecord.htm
add

cd recording

  1. links
  2. telling kernel your ide is scsi
    1. kernel setup
    2. boot options
    3. burning
  3. 2.6 kernel
    1. 2.6 kernel modifications
  4. audio

chmod.htm
add

permissions for file access

  1. chmod
  2. setguid,setuid,etc.
  3. file permissions for activities

comp-cvs.en.html
add


comp-cvs.html
add

Miscellaneous informations (about CVS)

CVS でバージョンを管理する


compressionMethods.htm
add

compression methods

  1. zip
  2. types of compression and who handles them
  3. zip and unzip
  4. gzip and gunzip
  5. tar
  6. introduction, and tar's 8 operating modes
  7. other options
  8. list an archive
  9. extract an archive
  10. create an archive: includes piping to stdout
  11. create an archive on freebsd
  12. copying a directory

cp.htm
add

cp command

  1. cp
  2. to copy from netscape

cron.htm
add

make the cronjob called 00webalizer, so that it runs before everything else
crontab -e allows each user to make own cron file
  1. 1-59: minute

ctags.txt
add

ctags -R .

cygwin.htm
add

cygrunsrv -I service_name-p /usr/local/apache/bin/httpd.exe [-a arguments] \ [-e VAR=VALUE] [-t auto|manual] [-u user] [-w passwd]

cygrunsrv -S service_name

cygrunsrv -E service_name


diff.htm
add





  1. diffone:

    this is from diff one

diffone
add

this is from diff one this is line 2 which will be deleted from diffone but not from difftwo this is line 3 which will be deleted from diffone but not from difftwo this is line 4 which will remain in both diffone and difftwo

diffresult
add

1,2c1,2 < this is from diff one < this is line 2 which will be deleted from diffone but not from difftwo --- > this is frmo diff two

difftwo
add

this is frmo diff two this is line 3 which will remain in both diffone and difftwo this is line 3 which will be deleted from diffone but not from difftwo

dpkg.txt
add

$ dpkg -l j2sdk1.3 galeon ii j2sdk1.3 1.3.1-1 Blackdown Java(TM) 2 SDK, Standard Edition ii galeon 0.12.4-0.1 Mozilla based web browser with GNOME look an $ dpkg -S gnome-settings-daemon capplets: /usr/lib/control-center/gnome-settings-daemon

ed.htm
add

  1. ed

find.htm
add

getting around with commands on linux: find

  1. finding files

ftp.htm
add

  1. ftp: the original
  2. ncftp
  3. mc: the preferred choice

gnotime.htm
add

gnotime


grep.htm
add

  1. grep
  2. egrep

hdparam.htm
add

hdparam

hdparm -a /dev/hda
tweak this value with -a 8 -a 4 etc.
hdparm -tT /dev/hda

head.htm
add

head -12 bash.htm
top 12 lines
head -12 lynx.htm | cat -
same as above

iconv.txt
add

iconv --from-code=euc-kr --to-code=UTF-8 < zboard.php > zboard2

in_sbin.htm
add

c2ph
does something with the assembler code
cal

indent.txt
add

for loop formatting =================== -br,-bl Specifying -bl lines up compound statements like this:

init_rsync.text
add

#!/bin/sh # In this case, it runs a script to use rsync to copy files from the directory /etc/distrib on the server (baskerville, for now) to /etc/distrib on the client. While rsync can run over ssh, we first need to check that the ssh config files are up-to-date. So the first part of the script handles copying the files in /etc/distrib/ssh, and then the script copies everything else in /etc/distrib over ssh: # # Script for pulling system administration files from a server via anonymous # rsync over ssh

kill.txt
add

kill ` ps -aux | awk ' ($11 ~ /\/usr\/sbin\/sshd/) { print $2} '`

ln.htm
add

ln -sf /var/some/directory
will create a sym link that directory and the sym link will be of the same name

ls.htm
add

getting around with commands on linux: ls

  1. ls

lynx.htm
add

update dynamic dns
lynx -source -auth=username:password 'http://dynamic.zoneedit.com/auth/dynamic.html?host=www.mydomain.com'

lynx.txt
add

update dynamic dns using lynx lynx -source -auth=username:password 'http://dynamic.zoneedit.com/auth/dynamic.html?host=www.mydomain.com'

mc.htm
add

mc -P
starts as usual

md5.htm
add

md5

here is a MD5SUM file as found on www.openmail.org: f1a1d9633160d71af8c91eb22c398b24 openwebmail-1.90-20030307.i386.rpm. Yes, that's the whole file!

NOW WHAT???

[root@www SOURCES]# md5sum openwebmail-current.tgz

miscellaneous.htm
add

cmp
compares 2 files and tells if they're the same (same as diff if you want to just compare).

mkisofs.htm
add

  1. samples
  2. options
  3. isoinfo

mknod.htm
add

  1. one
  2. two
  3. man page

mogrify.txt
add

Sorry, just a Linux explanation for others who might be interested I use the following two: mogrify -resize "x1200" *.jpg mogrify -resize 1600x -resize "x1200<" The first makes a picture WhateverX1200. The width can be more or less,

mount.htm
add

  1. remounting under freebsd
  2. the mount command

nessus.htm
add

a software security tool operating off port 3001 (default).

sayings uttered by program on install:
Nessus is now installed on this host
Create a certificate for nessusd using /usr/local/sbin/nessus-mkcert

nm.htm
add

The nm(1) command can report the list of symbols in a given library. For a given library nm(1) can list the symbol names defined, each symbol's value, and the symbol's type. It can also identify where the symbol was defined in the source code (by filename and line number), if that information is available in the library (see the -l option). source: http://www.cgsecurity.org/Articles/1-MISC/Protections-1/

Avec gcc, nous transformons ces instructions en


nslookup.txt
add

nslookup set type=mx mydom.com

parted.htm
add

parted: a program that allows you to create, destroy, resize, move and copy hard disk partitions. This is useful for creating space for new operating systems.


patch.htm
add

patch takes the output of diff and applies it to a source tree

it will rename the original file to old_file_name.orig


patchref.txt
add

[joe@www mysql++-1.7.9]$ patch -p 0 < mysql++-gcc-3.0.patch can't find file to patch at input line 4 Perhaps you used the wrong -p or --strip option? The text leading up to this was:

ps.txt
add

joe 16509 0.0 0.2 7892 2640 pts/2 S 21:11 0:00 vim select_term.c joe 16524 0.0 0.0 1324 296 pts/1 T 21:13 0:00 ./select_call 1026 postgres 16535 0.0 0.3 11260 3760 ? S 21:18 0:00 postgres: user db [local] idle I was wondering what the T was ... traced/stopped.

quota.txt
add

quota -v shows my disk quota

route.htm
add

try here

rpm.htm
link to the other rpm file

rpm

  1. introduction (this page link)
  2. basics (this page link)
  3. making rpm packages, source rpms, making rpm packages (link to /unix/rpm/rpmbuild.htm)

rsync.htm
add

rsync

  1. introduction
  2. rsync backup script
  3. samples
  4. rsyncd.conf
  5. pull method of transferring

semaphores.htm
add

http://www.cs.concordia.ca/~comp346/winter00/info_sem_shm.html


service.htm
add

  • /sbin/service --status-all
  • /sbin/service sshd condrestart
  • /sbin/service sshd stop

spell
add

ispell -x onelinepipe.pl

su.htm
add

su - oracle -c /users/oracle/bin/dbstart
su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl -D $PGDATA -p /usr/bin/postmaster -o '-p ${PGPORT}' start > /var/log/postgres.log 2>&1" < /dev/null
this was suggested as an improvement in /etc/rc.d/postgresql over the following

suid.htm
add

try here

tar.htm
add

tar archiving

  1. introduction, and tar's 8 operating modes
  2. other options
  3. list an archive
  4. extract an archive
  5. create an archive: includes piping to stdout
  6. create an archive on freebsd
  7. copying a directory

tcpdump.htm
add

it can capture the full packets and not just diagnose with

 tcpdump -i  -s 1500 -w 

trash.htm
add


tripwire.htm
add


tripwire_sample.txt
add

[joe@www commandline]$ su [root@www root]# tripwire -m i -p /etc/tripwire/tw.pol -d /var/lib/tripwire/www.sirfsup.com.twd www.sirfsup.com.twd www.sirfsup.com.twd.bak [root@www root]# tripwire -m i -p /etc/tripwire/tw.pol -d /var/lib/tripwire/www.sirfsup.com.twd

useradd.htm
add

  1. useradd
  2. groups

vi_adv.htm
add

try here

webmin.htm
add

which port? 9000? 9001? NO, it's 10000

wget.txt
add

how to download images and css with your web page the following don't work [joe@www drupal_site]$ wget -r -A css.gif,jpg --follow-tags=style,link http://drupal.org wget -r -A -L css.gif,jpg http://drupal.org wget -r -A css.gif,jpg http://drupal.org

zip.htm
add

zipping for compression

  1. types of compression and who handles them
  2. zip and unzip
  3. gzip and gunzip
   --->upload your article


User submitted category site links


(None)

-->submit a page from your site dealing with commandline to the sirfsup! web directory for listing

return to top