4129 links
740 private links
  • Doo's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
  • ► Jouer les vidéos
Links per page: 20 50 100
page 3 / 3
Newer►
47 results tagged bash x
  • thumbnail
    Collection of Less Commonly Used UNIX Commands

    home | blog | popular | study | writing | projects | about | connect
    Collection of Less Commonly Used UNIX Commands
    September 11th, 2013 | Linux | System Administration | Technology

    [ Check out my latest post on the HP Security Blog: “The Secure Web Series, Part 1: Securing The Password Reset Mechanism” ]

    unixcommands

    Over at Hacker News there are often threads about less-traveled UNIX commands. One particular comment collected a few of the posts, and I decided to parse all of those threads’ commands, plus my own favorite list of obscure entries, and put them in one place.
    Somewhat obscure UNIX commands

    column: create columns from text input
    tr: translate/substitute/delete input
    join: like a database join but for text
    comm: file comparison like a db join
    paste: put lines in a file next to each other
    rs: reshape arrays
    jot: generate data
    expand: replace spaces and/or tabs
    time: track time and resourcing
    watch: execute something on a schedule in realtime
    xargs: execute something on all inputs
    iftop: visually show network traffic
    jnettop a more detailed iftop
    htop: show system stats more powerfully
    xxd: manipulate files in hex
    mtr: powerful traceroute replacement
    mdfind: osx find replacement that uses spotlight
    brew: osx package manager
    df: disk free
    du: disk usage
    iotop: i/o stats
    dig: dns queries
    host: dns queries
    man ascii: lookup your ascii
    sshfs: mount a directory through ssh
    wget: get w’s
    dstat: powerful system statistics
    tmux: a better screen
    jq: command line JSON parsing
    pushd: push your pwd to a stack
    popd: pop pwd off your stack
    lsof: godlike system information [*]
    ncat: nmap-based replacement for nc
    fuser: kills locking processes
    vim: attack yourself
    tac: cat in reverse
    slurm: network interface stats
    rename: change spaces to underscores in names
    bmon: a simple bandwidth monitor
    open .: in osx, open finder in the current dir
    lsmod: show kernel modules
    printf: change the format of output
    timeout: execute something and kill it soon after
    disown: protect a job from disconnect
    fc: edit your last command in your editor and execute it
    sudo !!: repeat last command with sudo
    tee: send output to stdout as well
    pgrep: greps through processes
    pkill: kills processes based on search
    fmt: text formatter
    multitail: see logs in separate views
    bc: an interactive calculator language
    apropos: info on commands
    strace: the uber debug tool
    man units: interesting
    pstree: shows processes in a…well…tree
    pv: a progress bar for piped commands
    ddate: wtf
    zgrep: grep within compressed files
    zless: look at compressed files
    nping: nmap-based custom packet creation
    readlink: read values of links
    iostate: look at your disk i/o
    atop: another top
    split: break a file into pieces
    dd: disk writing
    ndiff: show differences in nmap scans
    ss: socket statistics (show apps using the Internet)
    February 19, 2014 10:07:51 PM GMT+01:00 * - permalink -
    QRCode
    - http://www.danielmiessler.com/blog/collection-of-less-commonly-used-unix-commands
    commands linux commandes shell bash
  • thumbnail
    12 Best Practices for Writing Bash Scripts - Kevin van Zonneveld

    via blue again, to read !

    December 3, 2013 07:00:02 PM GMT+01:00 - permalink -
    QRCode
    - http://kvz.io/blog/2013/11/21/bash-best-practices/
    bash ril tdl
  • thumbnail
    Shell : Historiser (logguer) toutes les commandes shell | L'admin sous GNU / Linux - Blog Libre

    mis en test sur coin, a surveiller

    November 3, 2013 11:39:01 AM GMT+01:00 - permalink -
    QRCode
    - http://blog.admin-linux.org/administration/shell-historiser-logguer-toutes-les-commandes-shell
    ril tdl tool linux bash
  • thumbnail
    bash - Why does "$i | sed" not work? - Unix & Linux Stack Exchange

    You can substitute the value of $i in to see the exact command you're trying to run:

    app4/ | sed -e "s/^.*(.)$/\1/"

    This doesn't work because app4/ isn't a command. You're trying to pipe app4/ into sed, so you need to use something that outputs app4/:

    echo app4/ | sed -e "s/^.*(.)$/\1/"

    This works, but you don't really need to use sed for this; bash has quite a few string manipulation tools. For example, ${i#} will give you the length of $i, and ${i:j} will give you a substring starting at j, so ${i:$((${i#}-1))} will give you the last character.

    The easiest way to do what you're trying is probably with ${i%/}. This will return $i, but will strip off a / from the end if there is one:

    $ i="app4"; echo ${i%/}
    app4
    $ i="app4/"; echo ${i%/}
    app4

    Thus:

    if [ "${i%/}" = "$i" ]
    then
    echo "file"
    else
    echo "folder"
    fi

    However, if all you really want is to know if $i is a valid directory, you can just use:

    if [ -d "$i" ]

    November 2, 2013 09:58:05 PM GMT+01:00 - permalink -
    QRCode
    - http://unix.stackexchange.com/questions/27334/why-does-i-sed-not-work#27336
    sed hack tool linux bash
  • thumbnail
    List of Bash online-tutorials [Bash Hackers Wiki]

    'faut que je finisse de lire ces docs

    October 22, 2013 10:58:17 AM GMT+02:00 - permalink -
    QRCode
    - http://wiki.bash-hackers.org/scripting/tutoriallist
    bash tips
  • thumbnail
    BashGuide - Greg's Wiki
    October 22, 2013 10:57:46 AM GMT+02:00 - permalink -
    QRCode
    - http://mywiki.wooledge.org/BashGuide
    bash tuto
  • thumbnail
    "Bash Argsparse : mieux gérer sa ligne de commande dans ses scripts." http://feedly.com/k/16TWn5q
    October 10, 2013 09:50:37 PM GMT+02:00 - permalink -
    QRCode
    - http://"Bash Argsparse : mieux gérer sa ligne de commande dans ses scripts." http://feedly.com/k/16TWn5q
    ril tool bash
Links per page: 20 50 100
page 3 / 3
Newer►
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation