存档在 ‘linux 系统’ 分类

黑客如何悄然修改你的文件时间

2010年4月7日

如果一个黑客悄然进入你的linux服务器系统,在离开服务器的时候总是需要做一些毁尸灭迹的事情,防止他人发现,比如删除了系统日志和一些登陆信息,为了不让你看出那些文件被修改过总是。所以总会将那些修改过文件的修改时间更改得较早一些。

月影鹏鹏发现,touch命令变成了最大的帮凶。通过touch命令修改时间你也可以试一试这个命令

» 阅读更多: 黑客如何悄然修改你的文件时间

Minimalist Linux desktops

2010年3月30日

by Richard Hillesley

Lightweight desktops have a multitude of uses, on netbooks, for mobile devices, for older hardware, for users with limited requirements of their systems, for connecting to applications in the cloud, and for bare knuckled programmers who prefer to work closer to the metal.


Puppy lightweight Linux. Vergrößern The most popular desktops for Linux – KDE and GNOME – are are equal to the demands of most users, but if you are a sysadmin or programmer who does most of his or her work in a shell, or on the command line through vim or vi or Emacs, your demands of a desktop environment or a window manager may be relatively limited. A fully-featured desktop environment may, perversely, sometimes get in the way of useful work.   For more please visit http://jk.scanmon.com/en

» 阅读更多: Minimalist Linux desktops

Red Hat Moves Into Desktop Virtualization

2010年3月30日

Open source enterprise software company Red Hat has updated its virtualization platform, Red Hat Enterprise Virtualization (REV), to include support for desktop virtualization, the company announced Monday.   more from  http://jk.scanmon.com/en

» 阅读更多: Red Hat Moves Into Desktop Virtualization

Linux & Solaris硬件信息查看的命令

2010年3月25日

Linux
内存: cat /proc/meminfo
cpu:  cat /proc/cpuinfo
硬盘: df -h -T(no device的设备看不到)
fdisk -l可以在redhat9.0中看; redhat企业版不行.
还有几个命令可以看很多硬件设备的信息.
lspci -v
dmidecode
dmesg

» 阅读更多: Linux & Solaris硬件信息查看的命令

linux重定向命令应用及语法

2010年3月25日

1. 标准输入的控制
语法:命令 文件将命令的执行结果送至指定的文件中。
例如:
ls -l > list 将执行“ls -l” 命令的结果写入文件list 中。
语法:命令>! 文件将命令的执行结果送至指定的文件中,若文件已经存在,则覆盖。
例如:
ls -lg >! list 将执行“ls – lg” 命令的结果覆盖写入文件list 中。
语法:命令>& 文件将命令执行时屏幕上所产生的任何信息写入指定的文件中。
» 阅读更多: linux重定向命令应用及语法

Linux文件系统损坏后的远程修复方案

2010年3月17日

注意:使用fsck一定要先卸载分区,否则后果自负

【一】

是出现经常非法关机,断电,导致文件系统不连续,而在强制检查后不能通过的情况,系统会进入一个修复(repair)模式,

需要远程协助开启network和sshd服务,然后 cd /boot; umount / ; fsck -y /dev/sda3(假设根目录分区为sda3)

这里可能会有一些不连续或者部分损坏的文件被系统搁置到/lost+found目录下,都以#开头,以节点命名的目录,

需要手动恢复,恢复步骤自行到网上查询,需要确认原来的目录结构

» 阅读更多: Linux文件系统损坏后的远程修复方案

Learn Linux, 101: File editing with vi

2010年3月16日

Overview

In this article, learn the basic use of the vi editor, which is almost always available on any Linux or UNIX system. Learn to:

  • Navigate a document using vi
  • Use basic vi modes
  • Insert, edit, delete, copy, and find text

This article helps you prepare for Objective 103.8 in Topic 103 of the Linux Professional Institute’s Junior Level Administration (LPIC-1) exam 101. The objective has a weight of 3.

Prerequisites

To get the most from the articles in this series, you should have a basic knowledge of Linux and a working Linux system on which you can practice the commands covered in this article. Sometimes different versions of a program will format output differently, so your results may not always look exactly like the listings and figures shown here.

» 阅读更多: Learn Linux, 101: File editing with vi

Learn Linux, 101: Manage shared libraries

2010年3月16日

Overview

In this article, learn to find and load the shared libraries that your Linux programs need. Learn to:

  • Determine which libraries a program needs
  • Know how the system finds shared libraries
  • Load shared libraries

This article helps you prepare for Objective 102.3 in Topic 102 of the Linux Professional Institute’s Junior Level Administration (LPIC-1) exam 101. The objective has a weight of 1.

Prerequisites

To get the most from the articles in this series, you should have a basic knowledge of Linux and a working Linux system on which you can practice the commands covered in this article. Sometimes different versions of a program will format output differently, so your results may not always look exactly like the listings and figures shown here. In particular, many of the examples in this article come from 64-bit systems. We have included some examples from 32-bit systems to illustrate significant differences.

» 阅读更多: Learn Linux, 101: Manage shared libraries

使用Nginx的proxy_cache缓存功能取代Squid

2010年3月15日

Nginx从0.7.48版本开始,支持了类似Squid的缓存功能。这个缓存是把URL及相关组合当作Key,用md5编码哈希后保存在硬盘上, 所以它可以支持任意URL链接,同时也支持404/301/302这样的非200状态码。虽然目前官方的Nginx Web缓存服务只能为指定URL或状态码设置过期时间,不支持类似Squid的PURGE指令,手动清除指定缓存页面,但是,通过一个第三方的Nginx 模块,可以清除指定URL的缓存。

Nginx的Web缓存服务主要由proxy_cache相关指令集和fastcgi_cache相关指令集构成,前者用于反向代理时,对后端内 容 源服务器进行缓存,后者主要用于对FastCGI的动态程序进行缓存。两者的功能基本上一样。

» 阅读更多: 使用Nginx的proxy_cache缓存功能取代Squid

Learn Linux, 101: Process execution priorities

2010年3月15日

This article grounds you in the basic Linux techniques for managing execution process priorities. Learn to:

  • Understand process priorities
  • Set process priorities
  • Change process priorities

This article helps you prepare for Objective 103.6 in Topic 103 of the Linux Professional Institute’s Junior Level Administration (LPIC-1) exam 101. The objective has a weight of 2.

Prerequisites

To get the most from the articles in this series, you should have a basic knowledge of Linux and a working Linux system on which you can practice the commands covered in this article. Sometimes different versions of a program will format output differently, so your results may not always look exactly like the listings and figures shown here. The results in the examples shown here were obtained on a Ubuntu 9.10 (Karmic Koala) distribution. This article builds on the concepts discussed in the previous article “Learn Linux 101: Create, monitor, and kill processes.”


Back to top

Knowing your priorities

Connect with Ian

Ian is one of our most popular and prolific authors. Browse all of Ian’s articles on developerWorks. Check out Ian’s profile and connect with him, other authors, and fellow readers in My developerWorks.

Linux, like most modern operating systems, can run multiple processes. It does this by sharing the CPU and other resources among the processes. If one process can use 100% of the CPU, then other processes may become unresponsive.

» 阅读更多: Learn Linux, 101: Process execution priorities