#!/bin/bash# This should go in your ~/.bashrc file# Define ANSI color sequencesNORMAL="\[\033[0m\]"WHITE="\[\033[0;37;40m\]"MAGENTA="\[\033[0;35;40m\]"BRIGHTBLUE="\[\033[1;34;40m\]"BRIGHTWHITE="\[\033[1;37;40m\]"BRIGHTMAGENTA="\[\033[1;35;40m\]"#
一,環境搭建步驟 1)下載Linux源碼 1> ~#apt-cache search linux-source出現:linux-source - Linux kernel source with Ubuntu patches linux-source-3.0.0 - Linux kernel source for version 3.0.0 with Ubuntu patches 2>~#apt-get
首先說明時間類型分為兩種:Coordinated Universal Time(UTC):世界標準時間,也就是格林威治時間(Greenwich Mean Time, GMT)Calendar Time:日曆時間,從一個標準時間點(如:1970年1月1日0點)到此時經過的秒數來表示的時間。時間擷取#include <time.h>time_t time<time_t *tloc>//功能:擷取日曆時間,從1970年1月1日0點到現在所經曆的秒數//typedef long
在Linux中有7種啟動層級,預設是X-Window,像是Windows的視窗模式,而Linux的操作和配置一般我們都採用輸入命令的方式來完成,像DOS作業系統一樣,如何讓Linux一啟動就進入這種模式呢? 以管理員身份進入Linux,修改檔案:/etc/inittab檔案 找到“id:5:initdefault:”,其中的5就是X-Window,為預設運行層級,一般我們把5改為3即可。 一共有7種啟動層級,分別為:# 0 - halt (Do
NO 分類 PS1 命令名 用法及參數 功能註解 1 檔案管理 # ls ls -a 列出目前的目錄下的所有檔案,包括以.頭的隱含檔案 檔案管理 # ls ls -l或ll 列出目前的目錄下檔案的詳細資料 檔案管理 # pwd pwd 查看當前所在目錄的絕對路經 檔案管理 # cd cd .. 回目前的目錄的上一級目錄
ioctl is a bit of a ragbag of things. It provides an interface for controlling the behavior of devices and their descriptors and configuring underlying services. Terminals, file descriptors, sockets, and even tape drives may have ioctlcalls