Skip to main content

Kenyth Zeng's Library tagged commands   View Popular

20 Sep 09

nohup - Wikipedia, the free encyclopedia

  • nohup is most often used to run commands in the background as daemons. Output that would normally go to the terminal goes to a file called nohup.out if it has not already been redirected.
  • Under Debian, it is possible to use /sbin/start-stop-daemon to daemonise a process.
27 May 09

Eof - Shell Programming and Scripting - The UNIX and Linux Forums

  • in a shell script i came accross the following bit of code



    1.shift $(($OPTIND - 1))

    2.if [ $# -eq 0 ] ; then

    3. cat << EOF >&2

    4.Usage: $0 [-l|-u] [-r retries] lockfilename

    5.EOF

    6. exit 1

    7.fi

    I am not able to understand the meaning of lines(1,3,5).

    Can any one of u tell me the purpose of above said lines.
  • A here document is a special−purpose code block. It uses a form of I/O redirection to feed a command list to an interactive program or a command( here it is cat ).

    A limit string(here EOF) delineates the command list. The special symbol << designates the limit string.

Hamilton C shell I/O Redirection and Piping

  • A novel variation on i/o redirection is inline data, also called “here” documents: literal text you want the shell to feed a command as stdin.
  • The end-of-data string can be virtually anything you like, including wildcard characters, dollar signs, etc.; their normal meaning is turned off and they’re treated as ordinary literal characters.
  • 1 more annotations...

I/O Redirection and Pipes

  • referenced by integer file descriptors (or channel descriptors).
  • change where standard input comes from, or where output goes using a
    concept called Input/Output (I/O) redirection.
  • 8 more annotations...
10 May 09

BeanShell - Introduction

  • BeanShell is a small, free, embeddable Java source interpreter with
    object scripting language features, written in Java. BeanShell dynamically
    executes standard Java syntax and extends it with common scripting conveniences
    such as loose types, commands, and method closures like those in
    Perl and JavaScript.
  • Scripting Java lends itself to a wide variety of applications including
    rapid prototyping, user scripting extension, rules engines, configuration,
    testing, dynamic deployment, embedded systems, and even Java education.
  • 2 more annotations...
07 May 09

GNU/Linux - Stupid Bash Tricks: Repeat Last Argument to Last Command

  • usr-3@srv-3 usr-3]$ ping e2500.prod.bigfatdomain.com
    (output of ping snipped -- you've seen it before!)
    [usr-3@srv-3 usr-3]$ ssh !$

Screen - Copy and Paste

  • (C-a [, C-a C-[, C-a ESC)
  • The copy range is specified by setting two marks. The text between these
    marks will be highlighted. Press space to set the first or second
    mark respectively.
06 May 09

对话 UNIX: 使用 Screen 创建并管理多个 shell

  • 但是它有一个严重的缺点:如果 shell 停止了,您的工作也就停止了。要想让 shell 和您的工作保持活动状态(甚至是跨多个会话和中断的连接),可以使用 GNU Screen 作为控制台的窗口系统。
  • 电话线上的噪音、无线连接中断或者网络超时都可能导致远程 shell 中断。如果您已经在某个工作(比如调试一个应用程序)上花费了好几小时,而一下子就丢失了所有成果,一定会很沮丧的。
  • 19 more annotations...

Mounting and Unmounting File Systems

  • separate virtual disks
  • A directory (which should exist)
  • 1 more annotations...

e2fsprogs - Wikipedia, the free encyclopedia

  • Despite what its name might suggest, the e2fsprogs work not only with ext2 and ext3 but also with ext4
08 Dec 08

File Permission FAQ

  • By combining permissions and group ownership of the directory with
    the use of something called a sticky bit, it's possible to make sure that
    the desired group owns the file by default.
  • The initial '2' sets the sticky bit
    for group ownership
  • 3 more annotations...
01 Dec 08

VIM: windows

  • Split current window in two. The result is two viewports on
    the same file.
  • decrease current window height by N
1 - 20 of 32 Next ›
Showing 20 items per page

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo