`

linux commands summary

阅读更多

dynamic monitor log file:  

bash-3.00$ tail -f console.log

 

estimate disk space usage:

bash-3.00$ df -h
Filesystem                    Size  Used Avail Use% Mounted on
/dev/cciss/c0d0p3         127G   61G   60G  51% /
/dev/cciss/c0d0p1         76M   13M   60M  18% /boot
/export/home/patrol       127G   61G   60G  51% /home/patrol
/export/home/pvprapp1  127G   61G   60G  51% /home/pvprapp1
hksafs2:/export/home/ai91716
                                 40G   14G   26G  34% /home/ai91716
hksafs2:/export/home/hf52065
                                 40G   14G   26G  34% /home/hf52065


show current date

bash-3.00$ date
Tue Mar 10 10:42:21 HKT 2009
bash-3.00$ date '+%Y%m%d'
20090310

bash-3.00$ date '+%H%M%S'
105859

 

==Folder related task==========================

copy folder

bash-3.00$ cp -r sourceFolder targetFolder

 

rename /move folder

bash-3.00$ mv sourceFolder targetFolder

 

delete not empty folders

bash-3.00$ rm -rf eqtg

 

estimate folder size:

bash-3.00$ du -s -h /home/hf52065

7.3M /home/hf52065

 

create symbolic link

bash-3.00$ ln -s ./projects/realTargetFolder falseEasyNameFolder

 

 

=========================================

 

extract tar/tar.gz file

tar -xvf foo.tar              verbosely extract foo.tar

tar -xzf foo.tar.gz              extract gzipped foo.tar.gz

tar -cjf foo.tar.bz2 bar/              create bzipped tar archive of the directory bar called foo.tar.bz2

tar -xjf foo.tar.bz2 -C bar/              extract bzipped foo.tar.bz2 after changing directory to bar

tar -xzf foo.tar.gz blah.txt              extract the file blah.txt from foo.tar.bz2

 

Tom's comments: the strange thing is, the above commands don't work, only this one work

gzip -dc *.tar.gz | tar xvf -   

 

unzip zip file

unzip *.zip

分享到:
评论

相关推荐

    GNU/Linux Command−Line Tools Summary

    ### GNU/Linux命令行工具概览 #### 一、概述 GNU/Linux 命令行工具概览是一份由 GNU 开源组织提供的官方学习文档,它为用户提供了关于 GNU/Linux 系统下各种命令行工具的详尽介绍。这份文档不仅适合初学者了解基本...

    Professional_Linux_Programming.pdf

    Executing SQL Commands 173 Using Parameters 181 Summary 184 Chapter 7: Kernel Development 185 Starting Out 185 Kernel Concepts 199 A Word of Warning 200 The Task Abstraction 200 Virtual Memory 205 Don...

    Learn Linux in a Month of Lunches

    Summary Learn Linux in a Month of Lunches shows you how to install and use Linux for all the things you do with your OS, like connecting to a network, installing software, and securing your system. ...

    Linux System Administrator Guide Version0.9

    ### Linux System Administrator’s Guide Version 0.9: Key IT Knowledge Points #### Introduction The Linux System Administrator’s Guide Version 0.9 is a comprehensive resource aimed at helping new ...

    Shell.Programming.in.Unix.Linux.and.OS.X.4th.Ed

    Shell Programming in Unix, Linux and OS X is a thoroughly updated revision of Kochan and Wood’s classic Unix Shell Programming tutorial. Following the methodology of the original text, the book ...

    Itanium Architecture For Programmers

    Learning about commands Learning about your environment Inspecting an HP-UX or Linux file References Exercises Appendix B. Suggested System Resources Section B.1. System Hardware ...

    SO-FIB:操作系统的所有课程+如何使最终的笔式考试获得11分

    SO-FIB 如何将笔记传输到PDF 下载存储库,然后将其保存在任意位置 ... Summary2-> summary2.md(T4) 最常用的命令 命令->最常见的命令 命令-> Linux命令 主题命令 命令->命令.pdf 命令-> commands2.pdf

    nmon aix性能分析工具.rar

    11) Making nmon numbers match AIX commands 12) JFS numclient and maxclient numers 13) Wide windows in X Windows makes the columns wider in the Top view 14) WLM works again 15) nmon spots the VIO ...

    Practical Programming in Tcl and Tk

    - **Substitution And Grouping Summary**:总结了替换和分组的概念。 - **Fine Points**:讨论了一些更高级的主题。 - **Comments**:介绍了注释的用法。 - **CommandLine Arguments**:解释了如何处理命令行参数。...

    Debugging with GDB --2007年

    Summary of GDB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Free software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Contributors ...

    rkhunter-1.4.2.tar.gz

    在Linux终端使用rkhunter来检测,最大的好处在于每项的检测结果都有不同的颜色显示,如果是绿色的表示没有问题,如果是红色的,那就要引起关注了。另外,在上面执行检测的过程中,在每个部分检测完成后,需要以Enter...

    wpa_supplicant

    - **Summary of Linux Wireless Extensions use** 总结了Linux无线扩展的使用情况,这对于编写兼容Linux系统的驱动程序非常重要。 #### 五、EAP peer 实现 **EAP peer implementation** 包含了对EAP认证方法的...

    在EMC VNX 存储控制台中执行审核.pdf

    指出VNX控制台的Linux操作系统(OS)在审计基础设施方面有了增强,而且本技术笔记旨在介绍VNX控制台从8.x版本开始的审计基础设施。 2. 引言(Introduction) 文档的引言部分向读者介绍了VNX系统中的审计功能。审计...

    Bochs - The cross platform IA-32 (x86) emulator

    - Fix MTRR configuration (prevented boot of modern Linux kernels) - Fix interrupt vectors for INT 60h-66h (reserved for user interrupt) by setting them to zero - Fix BIOS INT13 function 08 when ...

    unix command line notes (2010)

    - **Rebooting from Windows to Linux on the PWF(从Windows到Linux的重启)**: 如果使用的是双系统,可以了解如何在两个操作系统间切换。 #### 终端窗口与控制台 - **Terminal windows and text consoles(终端...

    DebuggingWithGDB 6.8-2008

    Summary of gdb . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Free Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 ...

    Qt4.7官方白皮书

    - **背景介绍**:Qt4.7是一款跨平台的应用程序开发框架,适用于多种操作系统,包括Windows、Linux、Mac OS X等。Qt提供了丰富的功能集,使开发者能够快速构建高质量的用户界面和应用。 - **目标读者**:此文档主要...

    USB30 Universal Serial Bus 3.0 Specification pdf it is free

    Linux kernel 每一行都完全注释-初学者必备 http://download.csdn.net/source/1982431 Programming Embedded Systems 2nd http://download.csdn.net/source/1982338 J2ME pdf and code 郭克华 ...

Global site tag (gtag.js) - Google Analytics