打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
wiki:basic

Basic Commands for New Users

List the Contents of a Directory

To list the contents of a directory, open the terminal and type

ls

ls stands for list.

For more details, use

ls -l

-l stands for long.

To view all files, including hidden files use

ls -a

In Linux, hidden filenames start with a ”.”

You can combine -l and -a, like this

ls -al

Change Directory

To change to a directory within the one you are in, use

cd directory-name

To change to a directory in the directory in one you are in, use

cd directory-name/directory-name

To change to the root directory, use

cd /

To change to a directory in root, use

cd /directory-name

To change to the home directory, use

cd ~/

To change to a directory within the home directory, use

cd ~/directory-name

To change up to the directory containing the one you are in, use

cd ..

To change up two levels, use

cd ../..

Display the Contents of a File

To display the contents of a file, use

cat filename

This may be used to read text files.

As Root or Administrator

To have root or administrator permissions, use

sudo

before commands.

For example, to start the text editor as root or administrator, use

sudo editor

Stop an Application

To stop an application, use

killall app-name
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
DOS命令中 md cd  dir 等的英文全名
iso9660文件格式 VC/MFC / Visual C 资源
Changing apache document root in ubuntu | Tareq Hasan
unix/Linux常用命令英文全称与中文解释 man ,su,ps,ls 等等
嵌入式Linux学习笔记(0)基础命令。——Arvin
RHEL5中解决vsftp连接时的“500 OOPS:cannot change directory:/root”
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服