linuxwish命令 linux wifi连接命令

请问如何更改wish86的提示符

1、将/etc/DIR_COLORS文件cp到~/下,并改名为.dir_colors。

网站建设哪家好,找成都创新互联!专注于网页设计、网站建设、微信开发、微信小程序定制开发、集团企业网站建设等服务项目。为回馈新老客户创新互联还提供了册亨免费建站欢迎大家使用!

2、编辑.dir_colors文件,找到“DIR 01;34 # directory”,将34改为36。

你可以找到文件的两行注释:

# Text color codes:

# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white

按照颜色对应的数字,你还可以把目录显示颜色改成其他的。

同样其他的显示效果(包括背景)也可以参照说明进行修改。

这样你就可以定制自己的linux下命令行方式下的个性化显示效果了。

3、重新登录,就可以看到修改后的效果了。

Linux下如何修改root密码以及找回root密码

Linux下修改root密码方法以root身份登陆,执行:

passwd

用户名

然后根据提示,输入新密码,再次输入新密码,系统会提示成功修改密码。

找回root的密码

(一)Linux

系统密码破解在grub选项菜单按e进入编辑模式编辑kernel那行

/init

1

(或/single)按B重启进入后执行下列命令root@#passwd

root

(配置root的密码)

Enter

new

unix

password:输入新的密码

root@#init

6

(二)Debian

linux

系统密码破解在grub选项菜单’Debian

GNU/Linux,…(recovery

mode)’,按e进入编辑模式编辑kernel那行面的

ro

single

改成

rw

single

init=/bin/bash,按b执行重启进入后执行下列命令

root@(none)#mount

-a

root@(none)#passwd

root

root@(none)#reboot

(三)FreeBSD

系统密码破解开机进入引导菜单选择每项(按4)进入单用户模式进入之后输入一列命令

root@#mount

-a

root@#fsck

-y

root@#passwd(修改密码命令)

root@#root(要破解密码的用户名)

Enter

new

unix

password:

root@#init

6

(重启)

(四)Solaris

系统密码破解

bitscn.com在grub选项菜中选择solaris

failasfe

项系统提示Do

you

wish

to

have

it

mounted

read-write

on

/a

?[y,n,?]

选择y就进入单用户模式输入下列命令

#passwd

#New

passwd:输入新的密码

#Re-enter

New

passwd:在次输入新的密码

#init

6

(重启)

bitscn.com

(五)NetBsd

系统密码破解1.开机:当出现提示符号并开始倒数五秒时,

键入以下指令:

boot

-s

(进入单用户模式命令)

2.在以下的提示符号中

Enter

pathname

of

shell

or

RETURN

for

sh:

按下Enter.3.键入以下指令:

#

mount

-a

#

fsck

-y

4.使用

passwd

更改

root

的密码.

5.使用

exit

指令进入多人模式.

关于linux的 install命令

Linux提供了大量的命令,利用它可以有效地完成大量的工作,如磁盘操作、文件存取、目

录操作、进程管理、文件权限设定等。所以,在Linux系统上工作离不开使用系统提供的命

令。要想真正理解Linux系统,就必须从Linux命令学起,通过基础的命令学习可以进一步理

解Linux系统。

不同Linux发行版的命令数量不一样,但Linux发行版本最少的命令也有200多个。这里笔者

把比较重要和使用频率最多的命令,按照它们在系统中的作用分成下面六个部分一一介绍。

◆ 安装和登录命令:login、shutdown、halt、reboot、install、mount、umount、chsh、

exit、last;

◆ 文件处理命令:file、mkdir、grep、dd、find、mv、ls、diff、cat、ln;

◆ 系统管理相关命令:df、top、free、quota、at、lp、adduser、groupadd、kill、

crontab;

◆ 网络操作命令:ifconfig、ip、ping、netstat、telnet、ftp、route、rlogin、rcp、

finger、mail、 nslookup;

◆ 系统安全相关命令:passwd、su、umask、chgrp、chmod、chown、chattr、sudo ps、

who;

◆ 其它命令:tar、unzip、gunzip、unarj、mtools、man、unendcode、uudecode。

本文以Mandrake Linux 9.1(Kenrel 2.4.21)为例,介绍Linux下的安装和登录命令。

login

1.作用

login的作用是登录系统,它的使用权限是所有用户。

2.格式

login [name][-p ][-h 主机名称]

3.主要参数

-p:通知login保持现在的环境参数。

-h:用来向远程登录的之间传输用户名。

如果选择用命令行模式登录Linux的话,那么看到的第一个Linux命令就是login:。

一般界面是这样的:

Manddrake Linux release 9.1(Bamboo) for i586

kennel 2.4.21-0.13mdk on i686 / tty1

localhost login:root

password:

上面代码中,第一行是Linux发行版本号,第二行是内核版本号和登录的虚拟控制台,我们

在第三行输入登录名,按“Enter”键在Password后输入账户密码,即可登录系统。出于安

全考虑,输入账户密码时字符不会在屏幕上回显,光标也不移动。

登录后会看到下面这个界面(以超级用户为例):

[root@localhost root]#

last login:Tue ,Nov 18 10:00:55 on vc/1

上面显示的是登录星期、月、日、时间和使用的虚拟控制台。

4.应用技巧

Linux是一个真正的多用户操作系统,可以同时接受多个用户登录,还允许一个用户进行多

次登录。这是因为Linux和许多版本的Unix一样,提供了虚拟控制台的访问方式,允许用户

在同一时间从控制台(系统的控制台是与系统直接相连的监视器和键盘)进行多次登录。每

个虚拟控制台可以看作是一个独立的工作站,工作台之间可以切换。虚拟控制台的切换可以

通过按下Alt键和一个功能键来实现,通常使用F1-F6 。

例如,用户登录后,按一下“Alt F2”键,用户就可以看到上面出现的“login:”提示符,

说明用户看到了第二个虚拟控制台。然后只需按“Alt F1”键,就可以回到第一个虚拟控

制台。一个新安装的Linux系统允许用户使用“Alt F1”到“Alt F6”键来访问前六个虚拟

控制台。虚拟控制台最有用的是,当一个程序出错造成系统死锁时,可以切换到其它虚拟控

制台工作,关闭这个程序。

shutdown

1.作用

shutdown命令的作用是关闭计算机,它的使用权限是超级用户。

2.格式

shutdown [-h][-i][-k][-m][-t]

3.重要参数

-t:在改变到其它运行级别之前,告诉init程序多久以后关机。

-k:并不真正关机,只是送警告信号给每位登录者。

-h:关机后关闭电源。

-c:cancel current process取消目前正在执行的关机程序。所以这个选项当然没有时间

参数,但是可以输入一个用来解释的讯息,而这信息将会送到每位使用者。

-F:在重启计算机时强迫fsck。

-time:设定关机前的时间。

-m: 将系统改为单用户模式。

-i:关机时显示系统信息。

4.命令说明

shutdown命令可以安全地将系统关机。有些用户会使用直接断掉电源的方式来关闭Linux系

统,这是十分危险的。因为Linux与Windows不同,其后台运行着许多进程,所以强制关机可

能会导致进程的数据丢失,使系统处于不稳定的状态,甚至在有的系统中会损坏硬件设备(

硬盘)。在系统关机前使用 shutdown命令,系统管理员会通知所有登录的用户系统将要关

闭,并且login指令会被冻结,即新的用户不能再登录。

5.举例

shutdown -h 3:40

说明 3:40开始关机。

halt

1.作用

halt命令的作用是关闭系统,它的使用权限是超级用户。

2.格式

halt [-n] [-w] [-d] [-f] [-i] [-p]

3.主要参数说明

-n:防止sync系统调用,它用在用fsck修补根分区之后,以阻止内核用老版本的超级块覆

盖修补过的超级块。

-w:并不是真正的重启或关机,只是写wtmp(/var/log/wtmp)纪录。

-f:没有调用shutdown,而强制关机或重启。

-i:关机(或重启)前,关掉所有的网络接口。

-f:强迫关机,不呼叫shutdown这个指令。

-p: 当关机的时候顺便做关闭电源的动作。

-d:关闭系统,但不留下纪录。

4.命令说明

halt就是调用shutdown -h。halt执行时,杀死应用进程,执行sync(将存于buffer中的资

料强制写入硬盘中)系统调用,文件系统写操作完成后就会停止内核。若系统的运行级别为

0或6,则关闭系统;否则以shutdown指令(加上-h参数)来取代。

reboot

1.作用

reboot命令的作用是重新启动计算机,它的使用权限是系统管理者。

2.格式

reboot [-n] [-w] [-d] [-f] [-i]

3.主要参数

-n: 在重开机前不做将记忆体资料写回硬盘的动作。

-w: 并不会真的重开机,只是把记录写到/var/log/wtmp文件里。

-d: 不把记录写到/var/log/wtmp文件里(-n这个参数包含了-d)。

-i: 在重开机之前先把所有与网络相关的装置停止。

install

1.作用

install命令的作用是安装或升级软件或备份数据,它的使用权限是所有用户。

2.格式

(1)install [选项]... 来源 目的地

(2)install [选项]... 来源... 目录

(3)install -d [选项]... 目录...

在前两种格式中,会将

如何使用Linux命令dhclient

如何使用Linux命令

dhclient

The

Internet Systems Consortium DHCP Client, dhclient, provides a means for

configuring one or more network interfaces using the Dynamic Host Configuration

Protocol, BOOTP protocol, or if these protocols fail, by statically assigning an

address.

linux

dhclient 的语法

dhclient

[ -p port ] [ -d ] [ -e VAR=value ] [ -q ] [ -1 ] [ -r ] [ -lf lease-file ] [

-pf pid-file ] [ -cf config-file ] [ -sf script-file ] [ -e ENVVAR=value ] [ -s

server ] [ -g relay ] [ -n ] [ -nw ] [ -w ] [ if0 [ ...ifN ] ]

-p port

If the DHCP client should listen and transmit on a port other

than the standard (port 68), the -p flag may used. It should be followed by the

udp port number that dhclient should use. This is mostly useful for debugging

purposes. If a different port is specified for the client to listen on and

transmit on, the client will also use a different destination port - one greater

than the specified destination port.

-s

The DHCP client normally transmits any protocol messages it sends

before acquiring an IP address to, 255.255.255.255, the IP limited broadcast

address. For debugging purposes, it may be useful to have the server transmit

these messages to some other address. This can be specified with the -s flag,

followed by the IP address or domain name of the destination.

-g

For testing purposes, the giaddr field of all packets that the

client sends can be set using the -g flag, followed by the IP address to send.

This is only useful for testing, and should not be expected to work in any

consistent or useful way.

-d

The DHCP client will normally run in the foreground until it has

configured an interface, and then will revert to running in the background. To

run force dhclient to always run as a foreground process, the -d flag should be

specified. This is useful when running the client under a debugger, or when

running it out of inittab on System V systems.

-e

The dhclient daemon creates its own environment when executing

the dhclient-script to do the grunt work of interface configuration. To define

extra environment variables and their values, use the -e flag, followed by the

environment variable name and value assignment, just as one would assign a

variable in a shell. Eg: -e IF_METRIC=1

-r

The client normally doesn't release the current lease as it is

not required by the DHCP protocol. Some cable ISPs require their clients to

notify the server if they wish to release an assigned IP address. The -r flag

explicitly releases the current lease, and once the lease has been released, the

client exits.

-1

The -1 flag cause dhclient to try once to get a lease. If it

fails, dhclient exits with exit code two.

-cf, -lf, -pf, and -sf

The DHCP client normally gets its configuration information from

/etc/dhcp3/dhclient.conf, its lease database from

/var/lib/dhcp3/dhclient.leases, stores its process ID in a file called

/var/run/dhclient.pid, and configures the network interface using

/sbin/dhclient-script To specify different names and/or locations for these

files, use the -cf, -lf, -pf and -sf flags, respectively, followed by the name

of the file. This can be particularly useful if, for example, /var/lib/dhcp3 or

/var/run has not yet been mounted when the DHCP client is started.

-w

The DHCP client normally exits if it isn't able to identify any

network interfaces to configure. On laptop computers and other computers with

hot-swappable I/O buses, it is possible that a broadcast interface may be added

after system startup. The -w flag can be used to cause the client not to exit

when it doesn't find any such interfaces. The omshell (1) program can then be

used to notify the client when a network interface has been added or removed, so

that the client can attempt to configure an IP address on that

interface.

-n

The DHCP client can be directed not to attempt to configure any

interfaces using the -n flag. This is most likely to be useful in combination

with the -w flag.

-nw

The client can also be instructed to become a daemon immediately,

rather than waiting until it has acquired an IP address. This can be done by

supplying the -nw flag.

-e

The client runs child processes (scripts) with a clean

environment. Use the -e flag to specify additional environment variables to pass

to child processes.

linux

dhclient 的演示示例:

dhclient

eth0

Renews

the IP address.

Linux

renew ip command

$

sudo dhclient -r //release ip 释放IP

$

sudo dhclient //获取IP

谁知道linux操作系统超级用户的密码的破解方法?

可以找个支持这种文件系统的机器把硬盘挂上,chroot过去改密码

Linux 系统密码破解

1.在grub选项菜单按E进入编辑模式

2.编辑kernel那行 /init 1 (或/single)

3.按B重启

4.进入后执行下列命令

root@#passwd root (设置root的密码)

Enter new unix password:输入新的密码

root@#init 6

(二)debian linux 系统密码破解

1.在grub选项菜单'Debian GNU/Linux,...(recovery mode)',按e进入编辑模式

2.编辑kernel那行最后面的 ro single 改成 rw single init=/bin/bash,按b执行重启

3.进入后执行下列命令

root@(none)#mount -a

root@(none)#passwd root

root@(none)#reboot

(三)Freebsd 系统密码破解

1.开机进入引导菜单

2.选择每项(按4)进入单用户模式

3.进入之后输入一列命令

root@#mount -a

root@#fsck -y

root@#passwd(修改密码命令)

root@#root(要破解密码的用户名)

Enter new unix password:

root@#init 6 (重启)

(四)Solaris 系统密码破解

1.在grub选项菜中选择solaris failasfe 项

2.系统提示Do you wish to have it mounted read-write on /a ?[y,n,?] 选择y

3.就进入单用户模式

4.输入下列命令

#passwd

#New passwd:输入新的密码

#Re-enter New passwd:在次输入新的密码

#init 6 (重启)

(五)NetBsd 系统密码破解

1.开机:当出现提示符号并开始倒数五秒时, 键入以下指令:

boot -s (进入单用户模式命令)

2.在以下的提示符号中

Enter pathname of shell or RETURN for sh:

按下 Enter。

3.键入以下指令:

# mount -a

# fsck -y

4.使用 passwd 更改 root 的密码。

5.使用 exit 指令进入多人模式。

虚拟机装的LINUX忘记了密码怎么办?

1,启动虚拟机,出现下面的倒计时界面时,按键盘上的e键

(说明:要确保光标此时已经在虚拟机内了,要不然,按了e键,也是在windows内,无效。e代表edit,启动前编辑) 

2,进入如下后界面,再按e键 

3,进入如下界面后,使用键盘上的上下键,选中第二项以kernel开头的项。选中后,再次按e键

4,进入以下界面后,在最后面输入空格和s,然后回车。(注意:有的系统显示的内容可能和我下面出现的这一行不一样,没关系,直接加空格和s就行,不影响的;也就说什么呢,只要进入到这个页面,直接加空格和s,不要管他显示的是什么;) 

5,接着会回到如下界面,然后按下b键(b代表boot启动) 

6,进入如下界面: 

7,此时输入passwd root回车, 

8,输入密码,回车,确认密码,回车,输入reboot,回车; 

(声明:输入的密码不会显示出来,如果密码中想要带数字的话,不要使用键盘右边的number pad栏,要使用字母键盘上的数字,因为你不确定此时num lock是否锁定(针对笔记本而言)) 

step_9:最后就可以使用新密码登录了; 


网站标题:linuxwish命令 linux wifi连接命令
文章链接:http://myzitong.com/article/hpihgo.html