V 
VPS Hosting Referral Code PCGPDB


MAN PAGES INDEX
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 31, 2010, 09:14:32 AM

Login with username, password and session length
Pages: [1] 2 3 4
 1 
 on: September 21, 2009, 09:11:28 PM 
Started by dude - Last post by dude
Code:
ab -n 500 -c 1 http://bashconsole.org/

 2 
 on: September 21, 2009, 09:09:47 PM 
Started by dude - Last post by dude
NAME
       ab - Apache HTTP server benchmarking tool

SYNOPSIS
       ab [ -A auth-username:password ] [ -c concurrency ] [ -C cookie-name=value ] [ -d ] [ -e csv-file ] [ -g
       gnuplot-file ] [ -h ] [ -H custom-header ] [ -i ] [ -k ] [ -n requests ] [ -p POST-file ]  [  -P  proxy-
       auth-username:password  ] [ -q ] [ -s ] [ -S ] [ -t timelimit ] [ -T content-type ] [ -v verbosity] [ -V
       ] [ -w ] [ -x <table>-attributes ] [ -X proxy[:port] ] [ -y <tr>-attributes ]  [  -z  <td>-attributes  ]
       [http://]hostname[:port]/path

SUMMARY
       ab  is  a tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP) server. It is designed to
       give you an impression of how your current Apache installation performs. This especially shows  you  how
       many requests per second your Apache installation is capable of serving.

http://bashconsole.org/man.1.ab.html

 3 
 on: June 12, 2009, 07:30:16 PM 
Started by dude - Last post by dude
print the newline counts
Code:
cat filename.txt|wc -l

 4 
 on: June 12, 2009, 07:29:00 PM 
Started by dude - Last post by dude
WC(1)                            User Commands                           WC(1)

NAME
       wc - print the number of newlines, words, and bytes in files

SYNOPSIS
       wc [OPTION]... [FILE]...

DESCRIPTION
       Print newline, word, and byte counts for each FILE, and a total line if more than one FILE is specified.
       With no FILE, or when FILE is -, read standard input.

       -c, --bytes
              print the byte counts

       -m, --chars
              print the character counts

       -l, --lines
              print the newline counts

       -L, --max-line-length
              print the length of the longest line

       -w, --words
              print the word counts

       --help display this help and exit

       --version
              output version information and exit

AUTHOR
       Written by Paul Rubin and David MacKenzie.

REPORTING BUGS
       Report bugs to <bug-coreutils@gnu.org>.

COPYRIGHT
       Copyright © 2006 Free Software Foundation, Inc.
       This is free software.  You may redistribute copies of it under the terms  of  the  GNU  General  Public
       License <http://www.gnu.org/licenses/gpl.html>.  There is NO WARRANTY, to the extent permitted by law.

SEE ALSO
       The  full documentation for wc is maintained as a Texinfo manual.  If the info and wc programs are prop-
       erly installed at your site, the command

              info wc

       should give you access to the complete manual.

wc 5.97                            June 2008                             WC(1)

 5 
 on: May 20, 2009, 08:25:59 AM 
Started by user - Last post by user
Set date and time

Code:
ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
/etc/init.d/ntpd stop
ntpdate ntp0.zenon.net && hwclock -w
/etc/init.d/ntpd start

Also
Code:
rdate ntp0.zenon.net && hwclock -w

 6 
 on: May 20, 2009, 08:24:49 AM 
Started by user - Last post by user
NAME
       ntpdate - set the date and time via NTP

       Disclaimer:  The  functionality of this program is now available in the ntpd program. See the -q command
       line option in the ntpd - Network Time Protocol (NTP) daemon page. After a suitable period of  mourning,
       the ntpdate program is to be retired from this distribution

SYNOPSIS
       ntpdate  [  -46bBdqsuv  ]  [ -a key ] [ -e authdelay ] [ -k keyfile ] [ -o version ] [ -p samples ] [ -t
       timeout ] [ -U user_name ] server [ ... ]

DESCRIPTION
       ntpdate sets the local date and time by polling the Network Time Protocol (NTP) server(s) given  as  the
       server  arguments  to  determine the correct time. It must be run as root on the local host. A number of
       samples are obtained from each of the servers specified and a subset of the NTP clock filter and  selec-
       tion  algorithms are applied to select the best of these. Note that the accuracy and reliability of ntp-
       date depends on the number of servers, the number of polls each time it is run and the interval  between
       runs.

       ntpdate  can  be run manually as necessary to set the host clock, or it can be run from the host startup
       script to set the clock at boot time. This is useful in some cases to set  the  clock  initially  before
       starting  the  NTP  daemon  ntpd.  It is also possible to run ntpdate from a cron script. However, it is
       important to note that ntpdate with contrived cron scripts is no substitute for the  NTP  daemon,  which
       uses  sophisticated  algorithms  to  maximize  accuracy  and  reliability while minimizing resource use.
       Finally, since ntpdate does not discipline the host clock frequency as does  ntpd,  the  accuracy  using
       ntpdate is limited.

       Time  adjustments  are  made  by ntpdate in one of two ways. If ntpdate determines the clock is in error
       more than 0.5 second it will simply step the time by calling the system settimeofday() routine.  If  the
       error  is less than 0.5 seconds, it will slew the time by calling the system adjtime() routine. The lat-
       ter technique is less disruptive and more accurate when the error is small, and works  quite  well  when
       ntpdate is run by cron every hour or two.

       ntpdate  will  decline to set the date if an NTP server daemon (e.g., ntpd) is running on the same host.
       When running ntpdate on a regular basis from cron as an alternative to running a daemon, doing  so  once
       every hour or two will result in precise enough timekeeping to avoid stepping the clock.

       Note  that  in contexts where a host name is expected, a -4 qualifier preceding the host name forces DNS
       resolution to the IPv4 namespace, while a -6 qualifier forces DNS resolution to the IPv6 namespace.

       If NetInfo support is compiled into ntpdate, then the server argument is optional if ntpdate can find  a
       time server in the NetInfo configuration for ntpd.

http://bashconsole.org/man.8.ntpdate

 7 
 on: May 10, 2009, 03:05:56 PM 
Started by bashconsole - Last post by bashconsole
Excludes new emails according to exclude-list. Input file format: one email per line. Output: new unique emails are in *.csv file.
Code:
#!/bin/bash

echo "Joining..."
cat EXCLUDE-LIST $1 > 1
echo "Sorting..."
cat 1 |sort|uniq > 2
echo "Excluding new records..."
diff EXCLUDE-LIST 2 > 3
cat 3 |egrep -e '\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.\w{2,6}' > 4
replace "> " "" -- 4
echo "Preparing results..."
mv 2 EXCLUDE-LIST
mv 4 $1.cvs
rm 1 3

 8 
 on: May 10, 2009, 02:59:42 PM 
Started by bashconsole - Last post by bashconsole
NAME
       grep, egrep, fgrep - print lines matching a pattern

SYNOPSIS
       grep [options] PATTERN [FILE...]
       grep [options] [-e PATTERN | -f FILE] [FILE...]

DESCRIPTION
       Grep  searches  the  named  input  FILEs (or standard input if no files are named, or the file name - is
       given) for lines containing a match to the given PATTERN.  By default, grep prints the matching lines.

       In addition, two variant programs egrep and fgrep are available.  Egrep is the same as  grep -E.   Fgrep
       is the same as grep -F.

http://bashconsole.org/man.1.grep

 9 
 on: May 10, 2009, 02:48:31 PM 
Started by bashconsole - Last post by bashconsole

Delete all files that were untouched during 7 days. Search directory depth 10.
Code:
$ find dir/  -type f -mtime 7 -maxdepth 10 -print0 -exec rm \{} \;

 10 
 on: May 10, 2009, 02:44:04 PM 
Started by bashconsole - Last post by bashconsole
NAME
       find - search for files in a directory hierarchy

SYNOPSIS
       find [-H] [-L] [-P] [path...] [expression]

DESCRIPTION
       This manual page documents the GNU version of find.  GNU find searches the directory tree rooted at each
       given file name by evaluating the given expression from left to right, according to the rules of  prece-
       dence  (see  section  OPERATORS), until the outcome is known (the left hand side is false for and opera-
       tions, true for or), at which point find moves on to the next file name.

       If you are using find in an environment where security is important (for example if you are using it  to
       seach directories that are writable by other users), you should read the "Security Considerations" chap-
       ter of the findutils documentation, which is called Finding Files and comes with findutils.   That docu-
       ment  also  includes  a  lot more detail and discussion than this manual page, so you may find it a more
       useful source of information.

http://bashconsole.org/man.1.find

Pages: [1] 2 3 4
Page created in 0.092 seconds with 17 queries. (Pretty URLs adds 0.018s, 1q)