Linux Shell - 如何使用sort与uniq命令删除重复的文本行
需要对日志文件中的数据进行排序,但是有太多重复的行。 如何从GNU/linux下的文本文件中删除所有重复的行? 您需要使用shell管道以及以下两个Linux命令行实用程序来排序和删除重复的文本行: 1、sort命令 - 在Linux和类Unix系统中对文本文件行进行排序。 2、uniq命令 - 在Linux或Unix上运行或省略重复的行 使用Sort,Uniq和Shell管道删除重复行...
View ArticleMy one-liner Linux Dropbox client
In this blog post, I want to discuss one of my recent attempts to create a simple one-liner linux Dropbox client using only free and open-source components, including rclone , entr , and systemd ....
View Article使用 shell 在多服务器上批量操作
需求 日常工作中,我们常需要同时在多台服务器上执行同样的命令,如对比日志、检查服务等。这就需要我们有服务器批量操作的能力。 两年前写过一篇文章,shell实现SSH自动登陆 使用 shell 的 expect 命令进行 ssh 登陆,这种方式的灵活性确实非常高,但实现起来比较麻烦,而且单进程阻塞的特性也是它的硬伤,如果使用它进行批量操作,就需要启动多个 expect...
View ArticleUbuntu 19.04 Makes It Easier to Manage Reboot-free Kernel Updates
Users of Canonical’s Livepatch service ― which lets you install linux kernelupdateswithout rebooting ― will find additional settings available inUbuntu 19.04. The feature, which made its desktop debut...
View ArticleVisiting family for Christmas? Replace Windows 10 on their computer with...
Every year, millions of Americans get together with family on Christmas. Many adult kids return to a single parent's home to celebrate -- or a house shared by both parents if they beat the odds and...
View ArticleUbuntu 2018 Recap: From Memory Leak to Marvellous LTS
Ubuntu began the year on a buoyant note, carried high by a wave of (much-needed) positive press resulting from the release of Ubuntu 17.10 ‘Artful Aardvark’ a few months prior. But with a new...
View ArticleGPIOs and Go
Go Advent, Dec. 19, 2019 Recently, I decided that I needed a small heads up display for import things I kept forgetting, like the time until an event started or number of unread emails in my inbox. I...
View ArticleLinux下搭建Jenkins持续集成
Maven(也可留在Jenkins安装完成后,配置maven时选择自动安装) SVN(或Git) OpenJDK(不是JDK。也同样可以留在安装完成后,配置JDK时选择自动安装) Tomcat(Jenkins也自带有Jetty服务器,可使用“service jenkins start”来开启安装后的Jenkins服务,如需使用Tomcat则需要将安装目录...
View Article(1)Linux性能调休之Linux进程管理
玩过一段时间linux后,大家是否发现Linux也就是一个操作系统而已,和windows是类似的,只不过是windows拥有图形化界面,而Linux大部分情况下只是个黑黑的窗口。windows多用于个人,而Linux因为出色的性能而多用于服务器。...
View ArticleLinux vmstat命令详解
前言 linux命令千千万,而我们在日常工作中真真切切用到的命令应该不超过50个,在接下来的日子里,我会对我经常使用的命令,以及使用过程中不熟悉的命令进行一个总结,一是自我总结,加深记忆;二是和大家分享。 vmstat 是Virtual Meomory...
View ArticleKDE4ward on FreeBSD
KDE4 is deprecated in FreeBSD. Even more: kdelibs4 doesn’t build on 12-STABLE because of changes in OpenSSL. The KDE-FreeBSD has decided not to put any effort into reconciling long-EOL’ed software with...
View ArticlePlanetary Annihilation: TITANS has new test builds out, also moving to Linux...
The newer team behind Planetary Annihilation: TITANS has put out two new test builds, one built with newer modern tools and the other on their legacy toolchain. It comes packed with new features and...
View ArticleThe MGR window system
The MGR Window System Note well that this is mostly of historic interest . I haven't done any work on MGR for many years. MGR itself has gone into oblivion for most uses, largely being replaced by the...
View ArticleGetting Started with the openbox windows manager in Fedora
Openbox is a lightweight, next generation window manager for users who want a minimal enviroment for their Fedora desktop. It’s well known for its minimalistic appearance, low resource usage and the...
View ArticleHow I can make vim Auto-Indent as TextMate
How do I make Vim the number of lines of the terminal from which it starts? My work setup has several terminals open, at different heights (e.g. number of lines). How do I make Vim obtain that number...
View ArticleLubuntu 从 19.04 起将停止提供 32 位版本
Lubuntu 项目的开发者已通过其官网 宣布 ,他们的LXDE/LXQt ―― Ubuntu linux 的下游项目不再提供 32 位 x86 版本,即意味着 Lubuntu 也放弃了提供 32 位版本。但已经发布的Lubuntu 18.04 LTS 不会放弃对 32 位版本的维护,继续提供技术支持至2021年4月。 本月早些时候,Xubuntu宣布他们的 Xfce 桌面环境将停止为未来版本提供...
View ArticleCanonical Outs Important Linux Kernel Updates for All Supported Ubuntu Releases
Canonical releases new linux kernel security updates for all supported Ubuntu releases to patch users against several vulnerabilities discovered lately by various security researchers. The security...
View ArticleUbuntu 19.04 使管理免重启的内核更新变得更容易
我们都知道, 使用 Canonical Livepatch 服务的用户 可在不重启的情况下安装 linux 内核更新,不过据透露,在 Ubuntu 19.04 中亦将会找到其他额外的设置来使用此项功能。 这项功能在 Ubuntu 18.04 LTS 上首次亮相,对于最多三台独立机器的 Ubuntu 桌面用户是免费的。 作为其全新安装指导的一部分,Ubuntu 欢迎屏幕包括实时补丁设置(live...
View ArticleUsing AWS DeepRacer for ROS development
So the DeepRacer was released with much fanfare by Amazon Web Services (AWS) at this years Reinvent conference in Las Vegas. This combines an off the shelf radio control (RC) car chassis, with an...
View Articleosquery源码解读之auditd设置
上一篇通过分析osquery中的 socket_events 的实现对linux中的auditd的一些简单使用以及auditd日志文件的结构进行了讲解,本篇文章聚焦于osquery中的audit的实现。 前言 在之前的文章 osquery源码解读之分析socket_events 中已经说到,在osquery接管了auditd服务之后,就会增加三条规则: -a always,exit -S...
View Article