Linux 意外操作后如何进行数据抢救
在 GUI 中使用 shift + delete 组合键或是 CLI 下使用 rm -rf 删除选项,这个文件并没有从硬盘(或是其它存储设备)上彻底销毁。当它文件被删除以后, inode 的数据指针部分被清零,仅仅是从系统的目录结构中被移除,但是这个文件仍然存在你磁盘中的某个 block 物理位置上。( ls -li 或 stat 查询一个文件所对应的inode的元信息数据。 )。 注意:...
View ArticleThe Ubuntu Tablet Was Announced One Year Ago Today
The world’s first, official Ubuntu Tabletwas announced to the world one year ago today. Yup, twelve months ago linux fans were getting workedinto a frenzy over the Bq Aquaris M10 Ubuntu Edition tablet...
View ArticleMounting EBS(Elastic Block Store) volume to EC2(Elastic Compute Cloud) instance.
In this blog we will consider simple steps by which we can attach and mount a volume(elastic block store) to an ec2 instance. Following steps must be followed : Step 1 -> Creating an ec2 instance We...
View ArticleExistance and influence of Linux in daily life
Hi guys, just when you think that you never used linux in your life and are proud of it then I am sorry to disappoint you (psst I won't tell anybody). Everybody used Linux in day to day life, until and...
View Article详解Linux命令中的正则表达式
命令中的正则表达式 如果要在命令输出或文本中筛选内容时使用模糊查找,就需要使用正则表达式。正则表达式是一套由多个元字符组成的模糊查找模式,使用正则表达式可以快速查找和定位文本中指定的内容。 1、单字符匹配符. 正则表达式主要由一些元字符和匹配模式组成 单字符匹配符可以匹配任意单个字符,这个字符的功能和文件名匹配符中的?功能相同 使用正则表达式查找文本,首先需要使用元字符组成一个查找模式...
View Articlelinux shell发送Email邮件的方法详解
一封最简单的邮件echo -e "To: handy1989@qq.com\nCC: handy1989@qq.com\nFrom: handy<handy@test.com>\nSubject: test\n\nhello world" | sendmail...
View ArticleLinux shell命令帮助格式详解
前言linux shell命令通常可以通过-h或--help来打印帮助说明,或者通过man命令来查看帮助,有时候我们也会给自己的程序写简单的帮助说明,其实帮助说明格式是有规律可循的帮助示例下面是git reset命令的帮助说明,通过man git-reset可以查看git reset [-q] [<tree-ish>] [--] <paths>...git reset...
View ArticleLog4j 日志文件Linux/Mac/Windows通用存放位置设置方法
log4j1/log4j2中category的配置以及log的输出位置(windows和linux通用的log输出位置)一、场景和需求假设我现在有3个独立的用project(暂时用maven关联起来,当然也可以不用maven),一个是提供公共服务的infrastructure,一个是提供存储的persister,一个是提供搜索的searcher,其中提供基础服务的所有的类,例如DateUtils,H...
View Article在linux的终端退出python命令行的方法
如下所示:python 2.7.7 (default, Jun 3 2014, 01:46:20) [GCC 4.9.0 20140521 (prerelease)] on linux2Type "help", "copyright", "credits" or "license" for more information.>>> quitUse quit() or Ctrl-D...
View ArticleScottish Country Dancing stats
My wife has been in the same Scottish Country Dancing group for many years, and back in 2005 she began keeping a record of the dances done at each meeting. She lists a fair bit of information in her...
View ArticleVimScript学习笔记(3):补位映射(Operator-Pending Mappings)
这个Operator-Pending Mappings比较难翻译,字面意思是,一个操作要干什么,取决于后面跟的东西。比如 g 这个跳转命令, g 后面跟个 g 就是跳到文章开头,如果跟个 $ 就是跳到最后一个字符。本文说的Mappings,指的就是决定操作的后面的东西(movement)。可以这么想,这些命令后面需要跟一个变量,我们声明好这个变量(定义映射),然后用命令+变量的方式就可以调用了。...
View ArticlePlanck 2
Planck now supports linux! This capability owes its roots to Lucas Stadler who a started things off with a truly massive contribution which converted the bulk of the Objective C in Planck to portable...
View ArticleThe stretch freeze is coming
The soft freeze has been on going for almost a month now and the full stretch freeze will start tomorrow night (UTC). It has definitely been visible in the number of unblock requests that we have...
View ArticleExploring SELinux: An Overview
In the coming weeks, we at the linux Academy blog will be exploring SELinux ― or Security Enhanced Linux . SELinux provides users fine-grain control over access and permissions on their Linux servers...
View ArticleA Switch for Your RPi
In aprevious article, I talked about an add-on card for the Raspberry Pi called the ControlBlock. It allows game controllers to be connected as regular joystick devices, but it also has a really...
View Article$ ~/command/line/adventure
our first homework assignment for reading and writing electronic text with allison parrish is, shockingly, to read and write electronic text. i completed this great series of command line exercises ;...
View ArticlePrevent Files And Folders From Accidental Deletion Or Modification In Linux
Data protection is one of the main job of a System administrator. There are numerous free and commercial data protection softwares are available on the market. But, as you might know, there is a...
View Article作业――拷贝命令及其链接库
1),提示用户输入一个可执行命令的名称 2),获取此命令所依赖额所有库文件列表 3),复制命令至某目标目录(/mnt/sysroot,即把此目录当做根)下的对的路径中 bash,/bin/bash ===> /mnt/sysroot/bin/bash useradd, /usr/sbin/useradd ===> /mnt/sysroot/usr/sbin/useradd...
View ArticleAutomatic language detection for Flyspell
Iam always looking for new ways to improve my Emacs experience. Months ago, it happened to my spell-checking configuration thanks to the work of Nicolas Petton . (defvar mu-languages-ring nil...
View ArticleArrive On Time With NTP -- Part 3: Secure Setup
Earlier in this series, I provided a brief overview of NTP and then looked at important NTP options to lock down your servers. In this article, I’ll look at some additional security concerns. Check...
View Article