Linux
文章平均质量分 70
DViewer
求知者
展开
-
如何删除软连接文件
创建软链接即用 ln -s 原始文件或文件夹 目标文件或文件夹 当删除链接文件时,如果不小心会把原始文件删掉例:ln -s /home/user/bak /var/bakrm /var/bak/ 会提示bak是一个文件夹无法删除这时千万不要用 rm -rf /var/bak/ 来删除 否则你删除的并不是链接文件 而是真正的 /home/user/bak 文转载 2016-01-15 20:38:23 · 2496 阅读 · 0 评论 -
10 Wget Command Examples
We’ll show you 10 practical examples of Wget Command. Wget is a free utility that can be used for retrieving files using HTTP, HTTPS, and FTP which are considered as the most widely-used Internet prot转载 2017-11-10 13:35:43 · 565 阅读 · 0 评论 -
How to check CentOS version
There are several ways on how to check what version of CentOS is running on your system. Below you can find multiple examples on how to determine CentOS version. However, depending on your system no转载 2017-03-03 11:15:28 · 688 阅读 · 0 评论 -
Linux Top Command Output Explained
The top program offers a convenient interface in which you can monitor current process activity and also perform some basic management tasks. below Figure shows what a top window looks like.转载 2017-01-17 14:23:38 · 504 阅读 · 0 评论 -
Linux Cron
CronThis file is an introduction to cron, it covers the basics of what cron does,and how to use it.What is cron?Cron is the name of program that enables unix users to execute commands orscript转载 2016-12-16 16:57:54 · 396 阅读 · 0 评论 -
NTP配置实践
前言NTP(Network Time Protocol,网络时间协议)是用来使网络中的各个计算机时间同步的一种协议。无论是平时使用的私人计算机还是在工作中搭建的服务器集群,时间的统一性和准确性是十分重要的。本文以自己公司的NTP配置实践过程为例,过程本身并不复杂,原理部分请参考扩展阅读。时间同步真的很重要更新历史2016年03月16日 - 更新rhel6.3的NTP配置转载 2016-12-16 16:55:57 · 409 阅读 · 0 评论 -
Linux中设置和同步时间
准确的系统时间是稳定服务的基础,本文介绍与时间相关的Linux命令,以及如何为自己的Linux服务器维护准确的时间。时间一台Linux服务器有两个时间源,一个是硬件时间,即服务器硬件CMOS维护的时间,还有一个是软件时间,即操作系统维护的时间,前者通过hwclock命令来访问,后者则主要通过date命令来访问。date是最常用的时间相关的命令,例如:# 获取当前时间$ date转载 2016-10-30 16:00:43 · 7576 阅读 · 0 评论 -
Linux Zip Command
zip – Command to package and compress (archive) files.unzip – Command to list, test and extract compressed files in a ZIP archive.Open a shell prompt and type the following commands.Task: Crea转载 2016-10-18 11:05:02 · 1165 阅读 · 0 评论 -
什么是Here Document
Here Document 是在Linux Shell 中的一种特殊的重定向方式,它的基本的形式如下cmd << delimiter Here Document Contentdelimiter它的作用就是将两个 delimiter 之间的内容(Here Document Content 部分) 传递给cmd 作为输入参数。比如在终端中输入cat ,系统会提示继续进行输入,输转载 2016-10-14 16:42:56 · 1054 阅读 · 0 评论 -
Shell中的重定向
Working with redirections in bash is really easy once you realize that it's all about manipulating file descriptors. When bash starts it opens the three standard file descriptors: stdin (file descript转载 2016-10-14 16:40:10 · 1360 阅读 · 0 评论 -
Netstat 的10个基本用法
Netstat 简介Netstat 是一款命令行工具,可用于列出系统上所有的网络套接字连接情况,包括 tcp, udp 以及 unix 套接字,另外它还能列出处于监听状态(即等待接入请求)的套接字。如果你想确认系统上的 Web 服务有没有起来,你可以查看80端口有没有打开。以上功能使 netstat 成为网管和系统管理员的必备利器。在这篇教程中,我会列出几个例子,教大家如何使用 netst转载 2016-05-07 22:50:50 · 37304 阅读 · 3 评论 -
Show running processes with file name
If you want to see what executable the process 1234 is running:ls -l /proc/1234/exeIf you want to see what files that process has open:ls -l /proc/1234/fdIf you want to see the full comm转载 2016-04-22 16:19:00 · 542 阅读 · 0 评论 -
How to install zip and unzip command in Linux?
Example1: Syntax for zipping a file or folder.Syntax:zip archivename.zip file1 file2 folder1Note: The extension .zip is not mandatory and this is useful only to identify the file zip file.转载 2016-03-21 15:09:05 · 946 阅读 · 0 评论 -
linux开机启动详细流程
一、BIOS 加电自检 当你按电源开关开机时,电脑会首先去启动BIOS(基本输入输出系统),BIOS一般是集成在主板上的.BIOS 的工作 1.检测连接硬件,比如显卡,内存,磁盘等等,检测的目的是以后把这些设备信息提供给操作系统 2.寻找启动磁盘,每一种BIOS都会有开机启动菜单,可以在菜单里设置以哪个设备启动系统 比如:光驱,硬盘,网络等等,这个菜单可以设置多个转载 2016-01-02 22:22:23 · 569 阅读 · 0 评论 -
Linux系统启动流程
Linux系统启动流程大概总结下来是这么一个过程: POST-->BootLoader(MBR)-->Kernel(硬件探测、加载驱动、挂载根文件系统、/sbin/init)-->init(/etc/inittab:设定默认级别、系统初始化脚本、启动及关闭对应级别的服务、启动终端)详细分析上面的流程第1步: 1.POST 打开电源按钮,CPU会把位于CMOS中转载 2016-01-02 22:20:43 · 517 阅读 · 0 评论 -
where does root (/) mount point exist — linux
There are actually two root filesystems in most normal Linux boot processes.The real root filesystem is located in a partition or logical volume on a physical disk - it is not loaded into RAM as a转载 2015-12-30 17:56:21 · 648 阅读 · 0 评论 -
VFS目录树
系统初始化期间,Linux 都首先要在内存当中构造一棵VFS的目录树,实际上便是在内存中建立相应的数据结构。文件系统注册在 Linux 源代码中,每种实际的文件系统用以下的数据结构表示:struct file_system_type { const char *name; int fs_flags; int (*get_sb) (struct file_syst转载 2015-12-30 17:50:53 · 1283 阅读 · 0 评论 -
File Descriptors
One of the first things a UNIX programmer learns is that every running program starts with three files already opened:Table 1.1. Standard Files Provided by UnixDescriptive Name转载 2018-01-14 17:03:20 · 790 阅读 · 0 评论