lesson2 -basic Linux tasks

1. sudo    super user do                  ROOT is higest user

2. man Pages

man ping   :  describe ping command       hit ‘q‘  exit and back to command line

3. sudo tasksel:      LAMP server

4.apt-get

sudo apt-get  install apache2

remove

update

5.server

sudo /etc/init.t/apache2    start

stop

restart

6. top    show process ,task manage       PID    CPU MEMORY

k   idnumber    kill the process

7. basic navigation

cd   change directory

cd etc

cd /etc    go to root first and find etc

cd   ETC   no such file and directory

ls     show

时间: 2024-07-30 06:35:27

lesson2 -basic Linux tasks的相关文章

include/linux/tasks.h

#ifndef _LINUX_TASKS_H#define _LINUX_TASKS_H /* * This is the maximum nr of tasks - change it if you need to *///最大的进程数量#define NR_TASKS    128 #endif include/linux/tasks.h,布布扣,bubuko.com

Basic linux command-with detailed sample

Here I will list some parameters which people use very ofen, I will attach the output of the command with one parameters as well. 1.   Create a new user:useradd Parameter:                                                                               

Basic linux command

1. useradd 解释:添加新用户,在/etc/password文件中添加一行记录. 参数: -g    用于添加账户时指定该账户的私有组,如果不指定-g参数,useradd命令会自动创建与该用户同名的组名作为该账户的私有组 -G    用于添加附属组 -D    用于显示或设置useradd命令所使用的默认值 -d    指定用户主目录,如果目录不存在,则同时使用-m来创建主目录 -m    使用者目录若不存在,则自动创建 -u    指定用户的用户号,如果同时有-o选项,则可重复使用其他

Basic Linux Commands :date, clock, hwclock, cal, ls, pwd, whereis, which, who, w, whoami

作业01:自行学习如下命令 date, clock, hwclock, cal ls, cd, pwd, tty, whereis, which stat, echo, shutdown, halt, reboot, poweroff who, w, whoami date: 显示系统时间, [时间日期] date 查看系统当前时间 参数-u显示utc时间 格式化显示年月日 用+号连起来如:date +%Y-%m-%d(如果我们用date +%Y - %m - %d 会发现出错,因为系统看见空格

linux shell basic command

Learning basic Linux commands Command Description $ ls This command is used to check the contents ofthe directory. $ pwd This command is used to check the presentworking directory. $ mkdir work We will work in a separate directory calledwork in our h

13 Basic Cat Command Examples in Linux(转) Linux中cat命令的13中基本用法

Cat (串联) 命令是Linux/Unix开源系统中比较常用的一个命令.我们可以通过Cat命令创建一个或多个文件,查看文件内容,串联文件并将内容输出到终端设备或新的文件当中,这篇文章我们将会以实例的方式讲解Linux中cat命令一些简便的用法. The cat (short for "concatenate") command is one of the most frequently used command in Linux/Unix like operating systems

LINUX常用配置及命令

一.   Fedora系统配置 1.      [设置网卡IP] 步骤如下: 1)     用root用户登陆,打开/etc/sysconfig/network-scripts/ifcfg-eth0文件 注意:打开的文件要根据网卡来设置,如:网卡eth1的配置文件就是ifcfg-eth1. 2)     设置以下内容: DEVICE=eth0 BOOTPROTO=static IPADDR=10.128.32.36 NETMASK=255.0.0.0 ONBOOT=yes GATEWAY=10.

linux驱动current,引用当前进程,及task_struct(转)

尽管内核模块不象应用程序一样顺序执行, 内核做的大部分动作是代表一个特定进程的. 内核代码可以引用当前进程, 通过存取全局项 current, 它在 <asm/current.h> 中定义, 它产生一个指针指向结构 task_struct, 在 <Linux/sched.h> 定义. current 指针指向当前在运行的进程. 在一个系统调用执行期间, 例如 open 或者 read, 当前进程是发出调用的进程. 内核代码可以通过使用 current 来使用进程特定的信息, 如果它

Linux常见命令

NAME w -- display who is logged in and what they are doing uptime -- show how long system has been running top - display Linux tasks        ps - report a snapshot of the current processes.