IBM Master the Mainframe:[5]linux一notes

2024-10-26 17:23:32

windows下的IBM的linux on sy衡痕贤伎sterm Z部分的入门操作。相当于是一个关于命令的步骤精华总结。不要太期望光看这个就能学到最全面的东西,完整的学习还是得靠系统的学习。

工具/原料

连接的时候用到的另一个软件PuTTY

连接教程http://jingyan.baidu.com/article/6181c3e0670b1a152ef153f5.html

Log on to Linux

1、进入linux的时候,输入ID,回车,注意所有东西都要小写,如果错误,一般都是这个情况。

IBM Master the Mainframe:[5]linux一notes

2、进入到这个界面后,然后输入密码,回车。

IBM Master the Mainframe:[5]linux一notes

3、当你看到这个界面就等于登陆成功了。这一篇,主要是讲一些基本的指令,需要记住,或者做笔记,在后面需要用到。

IBM Master the Mainframe:[5]linux一notes

4、man相当于是一个帮助查询指筠沭鱿漆令,如果你忘记了那一个指令是什么怎么用,只需要输入'man >command<',回车。就会显示出你查询的那个指令的含义。如果要回到命令栏,按Q键即可。尝试输入“man man",回车。

IBM Master the Mainframe:[5]linux一notes

5、ls,列出当前目录的主要内容。需要体会ls -l与ls -la的区别。尝试输入”ls -l“,回车。看不出来区别,可以利用man来查询。

IBM Master the Mainframe:[5]linux一notes

6、cat用来连接文件和打印内容。尝试输入”cat README“,回车。

IBM Master the Mainframe:[5]linux一notes

7、less用来浏览长的文件,与cat差不多,但是cat不太能满足于浏览长文件。进入后可按Q退出。

IBM Master the Mainframe:[5]linux一notes

8、mkdir用来创建新目录,像windows一样。尝试创建一个名为bin的目录”mkdir bin“,回车。用ls查看它,”ls“,回车。

IBM Master the Mainframe:[5]linux一notes

9、cd用来改变你现在所在的目录。主目录为”~“。输入”cd bin“,回车。进入到bin的目录下。输入”cd ~“,回车。进入到主目录。

IBM Master the Mainframe:[5]linux一notes

10、cp用来翱务校肢复制本地的一个文件到另一个目录。我们尝试复制主目录下的readme到主目录的bin目录下,并且改名为myreadme输入”cp ~/README ~/bin/MYREADME“,回州榨丘醌车。依旧可以用ls验证查询。

IBM Master the Mainframe:[5]linux一notes

11、echo相当于是输出。让linux回复给你一句话。尝试输入”echo XXXX“,回车。XXXX自由发挥。

IBM Master the Mainframe:[5]linux一notes
猜你喜欢