官术网_书友最值得收藏!

Some handy Linux commands

The following Linux commands are very useful and you will find yourself using them often. Remember you can type man command where command is the command you are interested in at any time to learn more about it and the parameters it accepts.

Tip

Most commands also contain a more concise set of documentation under help as well.

The cd command allows you to change directories:

cd /home/pi

The touch command creates an empty file:

touch test.txt

The cp command can be used to copy files:

cp /home/pi/test.txt /home/newuser/test.txt

The mv command can be used to move a file or rename a file:

mv /home/pi/test.txt /home/pi/test2.txt

The rm command will remove a file or directory depending on the flag used:

rm text.txt

To find out which directory you are in you can use the pwd (present working directory) command:

pwd

If you wish to list the contents of a directory you can use the ls command:

ls

To learn more about basic Linux commands, the Debian operating system website provides a in-depth guide at https://www.debian.org/doc/manuals/user/ch6.html.

主站蜘蛛池模板: 扶风县| 喜德县| 冕宁县| 通渭县| 中西区| 交城县| 子洲县| 合水县| 云和县| 上虞市| 确山县| 芦溪县| 永春县| 修武县| 龙南县| 沈阳市| 闽侯县| 磴口县| 义乌市| 黎城县| 平顶山市| 台东县| 平江县| 永靖县| 雅安市| 徐州市| 宜都市| 新平| 博湖县| 通榆县| 临邑县| 张家口市| 本溪| 康平县| 安新县| 靖江市| 西贡区| 伊吾县| 抚州市| 灌阳县| 家居|