Linux tricks

Environment Settings

Path

Globally set path is in /etc/profile; or the user‘s .bash_profile for particular user

Adding a Directory to the path

Setting Your Path Variable

Loadable Kernel Modules

lsmod shows loaded loadable kernel modules

rmmod removes a module from kernel

modprobe adds or removes a module from the kernel

Services

stop and start kde service

service kdm stop
service kdm start
时间: 2024-10-12 20:22:07

Linux tricks的相关文章

linux tricks 之VA系列函数.

VA函数(variable argument function),参数个数可变函数,又称可变参数函数.C/C++编程中,系统提供给编程人员的va函数很少.*printf()/*scanf()系列函数,用于输入输出时格式化字符串:exec*()系列函数,用于在程序中执行外部文件(main(int argc, char* argv[]算不算呢,与其说main()也是一个可变参数函数,倒不如说它是exec*()经过封装后的具备特殊功能和意义的函数,至少在原理这一级上有很多相似之处).由于参数个数的不确

linux tricks 之 BUILD_BUG_ON_ZERO.

------------------------------------------- 本文系作者原创, 欢迎大家转载! 转载请注明出处:netwalker.blog.chinaunix.net ------------------------------------------- 尽管在大多数时候只需关心代码运行的正确性,但是很多时候需要在编译期间就发现这些潜在的致命错误.内核提供了两个有力的宏定义: 1 include/linux/kernel.h 2 /* Force a compilat

10 Interesting Linux Command Line Tricks and Tips Worth Knowing

I passionately enjoy working with commands as they offer more control over a Linux system than GUIs(Graphical User Interfaces) applications, therefore am always on the look out to discover or figure out interesting ways and ideas to make Linux so eas

How to change the output color of echo in Linux

大纲 1.The Bash Shell 2.Output in Color 3.How can do it? 1.The Bash Shell Bash is the primary shell of the Linux machine, included here are some tips/tricks with the shell. Use the manual page and learn about PS1, PS2 and PROMPT_COMMAND. The tricks in

Linux内核调试技术——jprobe使用与实现

前一篇博文介绍了kprobes的原理与kprobe的使用与实现方式,本文介绍kprobes中的第二种探测技术jprobe,它基于kprobe实现,不能在函数的任意位置插入探测点,只能在函数的入口处探测,一般用于监测函数的入参值.本文首先通过一个简单的示例介绍jprobe的使用方式,然后通过源码详细分析jprobe的实现流程. 内核源码:Linux-4.1.x 实验环境:Fedora25(x86_64).树莓派1b 1.jprobe使用实例 使用jprobe探测函数的入参值,需要编写内核模块.同k

linux/Documentation/kobject.txt

Everything you never wanted to know about kobjects, ksets, and ktypes Greg Kroah-Hartman <[email protected]> Based on an original article by Jon Corbet for lwn.net written October 1,2003 and located at http://lwn.net/Articles/51437/ Last updated Dec

Linux常用 bash

学会Linux常用 bash命令 目录 基本操作1.1. 文件操作1.2. 文本操作1.3. 目录操作1.4. SSH, 系统信息 & 网络操作 基本 Shell 编程2.1. 变量2.2. 字符串替换2.3. 函数2.4. 条件2.5. 循环 技巧 调试 1. Basic Operations a. export 显示所有的环境变量,如果你想获取某个变量的详细信息,使用 echo $VARIABLE_NAME. export Example: $ export SHELL=/bin/zsh A

Linux -- top (man)

TOP(1)                                                             User Commands                                                             TOP(1) NAME       top - display Linux processes SYNOPSIS       top -hv|-bcHiOSs -d secs -n max -u|U user -p p

[转]30 ESSENTIAL PYTHON TIPS AND TRICKS FOR PROGRAMMERS

If you ask any Python programmer to tell about the strengths of Python, he will quote brevity and high readability as the most influencing ones. In this Python tutorial, we’ll cover many essential Python tips and tricks that will authenticate the abo