`
hillmover
  • 浏览: 34061 次
  • 性别: Icon_minigender_2
  • 来自: 上海
社区版块
存档分类
最新评论

linux commands

阅读更多

mkfifo
    > mkfifo my_pipe
    > cat a.txt > my_pipe
    > cat my_pipe

ldd
    > ldd /usr/java/jre1.5.0_11/bin/java

xmlwf
    > curl -s 'http://bashcurescancer.com' > bcc.html
    > xmlwf bcc.html

删除文件的恢复

lsof
    > cp ~/code/demo.cpp /tmp/workspace/test.cpp
    > cd /tmp/workspace
    > less test.cpp
    > rm -f test.cpp
    > lsof | grep test.cpp
    less      6173  dirkxu    4r      REG      253,0     2876     669315 /tmp/workspace/test.cpp (deleted)
    > cat /proc/6173/fd/4 > recover.cpp
    > cmp ~/code/demo.cpp recover.cpp

文件的分割、合并、校验

split [OPTION] [INPUT [PREFIX]]
       -b, --bytes=SIZE
              put SIZE bytes per output file

       -C, --line-bytes=SIZE
              put at most SIZE bytes of lines per output file

       -d, --numeric-suffixes
              use numeric suffixes instead of alphabetic

       -l, --lines=NUMBER
              put NUMBER lines per output file
    > split -b 3k larger.txt small
    > ls -lh /etc | split -l 40 - small_line

    #combine multi files into one file
    > cat smalla smallb smallc > new_larger
    > cat small_linea small_lineb >> history

    #validate whether the new file equals the old file
    > md5sum larger new_larger

分享到:
评论

相关推荐

    A Practical Guide to Linux Commands, Editors, and Shell Programming 4th, ed

    Practical Guide to Linux Commands, Editors, and Shell Programming, A, 4th Edition By Mark G. Sobell, Matthew Helmke Published Nov 9, 2017 by Addison-Wesley Professional. The Most Useful Tutorial and...

    Linux Commands

    ### Linux Commands概述与详解 #### 一、a2p (Transforms awk scripts to Perl scripts) - **命令功能**: `a2p` 命令用于将 Awk 脚本转换为 Perl 脚本,并在标准输出(STDOUT)上显示结果。 - **应用场景**: 当需要...

    Linux_Commands and_Shell_Programming_2nd

    书名为《Linux Commands and Shell Programming 2nd》,即第二版《Linux命令及Shell编程实用指南》,作者为Mark G. Sobell。这本书被描述为Linux命令行操作和Shell编程的必备读物,其内容通俗易懂,翔实可靠,专注于...

    Operating System Concepts and Basic Linux Commands 无水印pdf

    Operating System Concepts and Basic Linux Commands 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,...

    The Linux Commands Handbook

    The Linux Commands Handbook follows the 80/20 rule: learn in 20% of the time the 80% of a topic. The author find this approach gives a well-rounded overview. This book does not try to cover ...

    A Practical Guide to Linux Commands, Editors, and Shell Programming, 第二版 pdf 英文版

    - **书籍名称**:《A Practical Guide to Linux Commands, Editors, and Shell Programming, 第二版》 - **作者**:Mark G. Sobell - **主要内容**:本书旨在为用户提供一个全面深入的学习资源,覆盖了Linux命令行的...

    Linux Commands, Editors and Shell Programming

    本书《Linux Commands, Editors and Shell Programming》由Mark G. Sobell撰写,是关于Linux命令行、文本编辑器使用以及Shell脚本编程的实用指南。该书的第二版为读者提供了深入理解和应用Linux操作系统中常用命令、...

    Practical Guide to Linux Commands, Editors and Shell Programming (2013)

    Practical Guide to Linux Commands, Editors and Shell Programming (2013) “This book is a very useful tool for anyone who wants to ‘look under the hood’ so to speak, and really start putting the ...

    A Practical Guide to Linux Commands-Editors-Shell Programming.4th

    《Linux Commands, Editors, and Shell Programming. 4th》是一本专注于Linux命令、文本编辑器以及Shell编程的实用指南。本书深入浅出地介绍了大量的Linux命令和工具,它们是Linux系统管理、网络管理以及日常使用中...

    A Practical Guide to Linux Commands, Editors, and Programming(4th) 无水印原版pdf

    A Practical Guide to Linux Commands, Editors, and Shell Programming(4th) 英文无水印原版pdf 第4版 pdf所有页面使用FoxitReader、PDF-XChangeViewer、SumatraPDF和Firefox测试都可以打开 本资源转载自网络,...

    A Practical Guide to Linux Commands Editors and Shell Programming 2nd Edition

    #### 一、书名与描述:《Linux命令、编辑器与Shell编程实用指南》第二版 - **书籍定位**:本书旨在帮助读者深入了解Linux操作系统的核心功能,即命令行操作和Shell编程。 - **目标读者**: - 对Linux操作系统感...

    linux常用命令大全 - Linux - RHEL - Linux Commands

    ### Linux常用命令详解 #### 一、概述 Linux作为一款强大的开源操作系统,广泛应用于服务器、桌面环境以及嵌入式系统等多个领域。对于Linux用户来说,掌握一系列基础且实用的命令行工具至关重要。本文将详细介绍一...

    Introduction to Linux Commands

    在Linux操作系统中,命令行是用户与系统交互的主要方式。本文将详细介绍一些基础且重要的Linux命令,包括帮助命令、文件管理、系统/进程管理、任务管理和文本处理等。这些命令对于日常的系统操作和管理至关重要。 ...

    Linux Commands Line v1.1

    在IT领域,尤其是在操作系统管理与开发环境中,掌握Linux命令行是至关重要的技能。根据所提供的文件信息,我们将深入探讨其中提及的Linux命令行知识点,这些知识不仅对于初学者来说是宝贵的资源,也是高级用户进行...

    Practical Guide to Linux Commands, Editors, and Shell Programming

    ### 实用指南:Linux命令、编辑器与Shell编程 #### 引言 随着技术的发展,Linux作为开源操作系统领域的领头羊,在服务器管理、网络安全、软件开发等多个领域扮演着至关重要的角色。掌握Linux不仅有助于提高工作效率...

    Cross-platform Linux commands in ES6.zip

    Linux是一套免费使用和自由传播的类Unix操作系统,由林纳斯·托瓦兹于1991年首次发布。 Linux不仅是一个强大的操作系统,也是一个庞大的技术生态系统,涵盖了从服务器到个人电脑的各种应用场景。同时,它的开源特性...

Global site tag (gtag.js) - Google Analytics