Kleine Linux-Tricks - schneller ohne Aufwand



Similar documents
Using the Command-Line Interface

Unix Sampler. PEOPLE whoami id who

An Introduction to the Linux Command Shell For Beginners

Command Line Crash Course For Unix

CS 2112 Lab: Version Control

Command Line - Part 1

Basic Linux & Package Management. Original slides from GTFO Security

Thirty Useful Unix Commands

The Linux Operating System and Linux-Related Issues

Beyond Windows: Using the Linux Servers and the Grid

LSN 10 Linux Overview

Tutorial 0A Programming on the command line

Monitoring a Linux Mail Server

Answers to Even-numbered Exercises

Linux command line. An introduction to the Linux command line for genomics. Susan Fairley

4PSA Total Backup User's Guide. for Plesk and newer versions

Unix Guide. Logo Reproduction. School of Computing & Information Systems. Colours red and black on white backgroun

Introduction to Mac OS X

vcenter Server Appliance Configuration

Command-Line Operations : The Shell. Don't fear the command line...

JUNOS Command Line Interface. Copyright 2003 Juniper Networks, Inc. 1

Linux Overview. The Senator Patrick Leahy Center for Digital Investigation. Champlain College. Written by: Josh Lowery

INASP: Effective Network Management Workshops

Hadoop Hands-On Exercises

CPSC2800: Linux Hands-on Lab #3 Explore Linux file system and file security. Project 3-1

Linux System Administration on Red Hat

Running your first Linux Program

CMSC 216 UNIX tutorial Fall 2010

Security Workshop. Apache + SSL exercises in Ubuntu. 1 Install apache2 and enable SSL 2. 2 Generate a Local Certificate 2

Birmingham Environment for Academic Research. Introduction to Linux Quick Reference Guide. Research Computing Team V1.0

List of FTP commands for the Microsoft command-line FTP client

A UNIX/Linux in a nutshell

Introduction to Operating Systems

Hadoop Hands-On Exercises

your Apple warranty; see There are two main failure modes for a mirrored RAID 1 set:

SFTP SHELL SCRIPT USER GUIDE

An A-Z Index of the Apple OS X command line (TERMINAL) The tcsh command shell of Darwin (the open source core of OSX)

Open Source Computational Fluid Dynamics

How To Use The Librepo Software On A Linux Computer (For Free)

Hands-On UNIX Exercise:

Linux System Administration

CLC Server Command Line Tools USER MANUAL

Beginners Shell Scripting for Batch Jobs

GCPP(soon) 09. DSP Platform ATOM (soon) 07. Revenue from Pakistan 03. Revenue from China

Introduction to Shell Scripting

USEFUL UNIX COMMANDS

Chapter 1. Backup service

Lab III: Unix File Recovery Data Unit Level

ICS 351: Today's plan

Syntax: cd <Path> Or cd $<Custom/Standard Top Name>_TOP (In CAPS)

RECOVER ( 8 ) Maintenance Procedures RECOVER ( 8 )

IBM Software Hadoop Fundamentals

University of Toronto

UNIX: Introduction to TELNET and FTP on UNIX

Introduction to Linux and Cluster Basics for the CCR General Computing Cluster

Introduction to Running Hadoop on the High Performance Clusters at the Center for Computational Research

Introduction to Shell Programming

File Transfer Protocol (FTP) Chuan-Ming Liu Computer Science and Information Engineering National Taipei University of Technology Fall 2007, TAIWAN

Introduction to Unix Tutorial

SSL Tunnels. Introduction

Introduction to Linux operating system. module Basic Bioinformatics PBF

Using SVN to Manage Source RTL

UNIX - Command-Line Survival Guide

Fred Hantelmann LINUX. Start-up Guide. A self-contained introduction. With 57 Figures. Springer

Fundamentals of UNIX Lab Networking Commands (Estimated time: 45 min.)

Know your tools SSH. Dariusz Puchalak Dariusz_Puchalak < at > ProbosIT.pl

Installing IBM Websphere Application Server 7 and 8 on OS4 Enterprise Linux

TRADING PLAN. Lorem ipsum dolor

Version Control with. Ben Morgan

Answers to Even- Numbered Exercises

CSIL MiniCourses. Introduction To Unix (I) John Lekberg Sean Hogan Cannon Matthews Graham Smith. Updated on:

Linux System Administration. System Administration Tasks

Mass Deploying Bomgar Software to Macs

Monitoring Clearswift Gateways with SCOM

Load Balancing/High Availability Configuration for neoninsight Server

Lecture 4: Writing shell scripts

Navigating the Rescue Mode for Linux

HSearch Installation

Introduction to the UNIX Operating System and Open Windows Desktop Environment

Computer Forensics Process

TNM093 Practical Data Visualization and Virtual Reality Laboratory Platform

DEVICE DRIVERS AND TERRUPTS SERVICE MECHANISM Lesson-14: Device types, Physical and Virtual device functions

Magento Search Extension TECHNICAL DOCUMENTATION

UNIX Basics. Ian Darwin TCP Informatics January, Presented from a Mac using Apple s Keynote presentation software

CPSC 2800 Linux Hands-on Lab #7 on Linux Utilities. Project 7-1

Introduction to the UNIX Operating System on IT Systems

Adobe Marketing Cloud Using FTP and sftp with the Adobe Marketing Cloud

1 Introduction to GNU/Linux & TCP/IP Basics

Shell Scripts (1) For example: #!/bin/sh If they do not, the user's current shell will be used. Any Unix command can go in a shell script

$ftp = Net::FTP->new("some.host.name", Debug => 0) or die "Cannot connect to some.host.name: $@";

FP File Organizer 3.0 Instruction Manual

IBM Redistribute Big SQL v4.x Storage Paths IBM. Redistribute Big SQL v4.x Storage Paths

TS-800. Configuring SSH Client Software in UNIX and Windows Environments for Use with the SFTP Access Method in SAS 9.2, SAS 9.3, and SAS 9.

Automating admin tasks using shell scripts and cron Vijay Kumar Adhikari.

PHP Debugging. Draft: March 19, Christopher Vickery

Linux Overview. Local facilities. Linux commands. The vi (gvim) editor

Automated Offsite Backup with rdiff-backup

Cisco Networking Academy Program Curriculum Scope & Sequence. Fundamentals of UNIX version 2.0 (July, 2002)

CPSC 226 Lab Nine Fall 2015

Salesforce Integration

Transcription:

Uli Martens uli@youam.net AIXpertenrunde 2008-12-12

Übersicht 1 2 3 4

hotkeys ALT-T exchange two arguments under the cursor (bash only) CTRL-T exchange two characters under the cursor (bash only) CTRL-L redraw screen / clean screen CTRL-R search backwards in the history CTRL-D send an EOF - exit the

Redirection doesn t need to be at the end of a command: $ echo a b >c $ echo >c a b $ >c echo a b $ cat <a $ <a cat $ <a sort >b

- applied Place the filename at the beginning of the line to allow easier editing of command arguments: $ </var/log/messages grep scsi $ </var/log/messages grep disk $ </var/log/messages grep sdb Creating and reading files is -specific: bash$ >filename # creates an empty file zsh$ >filename # same as cat >filename zsh$ :>filename # creates an empty file zsh$ <filename # show a file in the pager

sponge - write input to file (sponge is included in the moreutils debian package) $ cat testfile Lorem ipsum dolor sit amet, consetetur... $ sort < testfile > testfile $ cat testfile $ $ echo lorem ipsum > testfile $ sort < testfile sponge testfile $ cat testfile lorem ipsum $

pathname expansion shortcuts (zsh only) $ cd ~log cd: no such file or directory: ~log $ hash -d log=/var/log $ cd ~log $ pwd /var/log $

$ cat ~/. ls= ls --color=auto dir= ls -bcafl grep= grep --color=auto insec= -o "StrictHostKeyChecking=no" \ -o "UserKnownHostsFile=/dev/null" un rm unik= -ne "print unless \$seen{\$_}++" ltree () { tree -C "$@" less -r ; }

unik - uniq for unsorted input -ne "print unless $seen{$ }++" $ cat call.log +49241708822 +492418869292 +492418869292 +4924181000 +492418869292 $ unik call.log +49241708822 +492418869292 +4924181000 $

on the command line $ -e print sort {length($a)<=>length($b) or $a cmp $b} <> <~/.histfile [...] $ echo 00:15:58:0a:40:00 -F: -ane \ print join(".", map { hex($_) } @F),"\n"; 0.21.88.10.64.0 $

virtual hosts $ -i ~/./key/belfor.tis.key -p 2222 -l test \ 212.185.64.120 $ belfor.tis host belfor.tis user test hostname 212.185.64.120 port 2222 identityfile ~/./key/belfor.tis.key ServerAliveInterval 180

firewalled hosts $ 62.157.120.11 : connect to 62.157.120.11: Connection refused $ belfor.wfb host belfor.wfb user root proxycommand mar@cvs.aixonix.de \ nc 62.157.120.11 22

firewalled hosts host1$ hostb hello world host1$ hostb$ cat ~/./authorized_keys no-port-forwarding,no-x11-forwarding,no-agent-forwarding,\ no-pty,command="echo hello world" -rsa AAAAB... hostb$

misc usefull dstat resource statistics file show file type of a file hexdump show a hex dump of a file lftp command line file transfer tool for ftp,http,sftp,... pstree show a tree structure of running processes screen terminal multiplexer script record a session vimdiff edit two or three files side by side