Linux Shell Scripting Tutorial v2.0(16)

2020-12-16 13:03

but it is by far not as powerful as our Linux Shells are!

Shell Prompt

There are various ways to get shell access:

Terminal - Linux desktop provide a GUI based login system. Once logged in you can gain access to a shell byrunning X Terminal (XTerm), Gnome Terminal (GTerm), or KDE Terminal (KTerm) application.

Connect via secure shell (SSH) - You will get a shell prompt as soon as you log in into remote server orworkstation.

Use the console - A few Linux system also provides a text-based login system. Generally you get a shell promptas soon as you log in to the system.

How do I find Out My Current Shell Name?

To find all of the available shells in your system, type the following command:cat /etc/shells

In case the shells file has more than one shell listed under it, then it means that more than one shell is supported byyour Platform

Command Line Interface (CLI)

The shell provides an interface to Linux where you can type or enter commands using the keyboard. It is known asthe command line interface (CLI). To find out your current shell type following command[1] .:echo $SHELLps $$ps -p $$

Basic Command Line Editing

You can use the following key combinations to edit and recall commands:

CTRL + L : Clear the screen.

CTRL + W : Delete the word starting at cursor.

CTRL + U : Clear the line i.e. Delete the all words from command line.Up and Down arrow keys : Recall commands (see command history).Tab : Auto-complete files, directory, command names and much more.

CTRL + R : Search through previously used commands (see command history)CTRL + C : Cancel currently running commands.

CTRL + T : Swap the last two characters before the cursor.ESC + T : Swap the last two words before the cursor.


Linux Shell Scripting Tutorial v2.0(16).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:预防艾滋病主题班会

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: