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

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.

主站蜘蛛池模板: 重庆市| 裕民县| 佛学| 灵武市| 胶南市| 潜山县| 蓝田县| 台北市| 白城市| 车险| 镇远县| 海口市| 永修县| 霍州市| 那曲县| 丹江口市| 新巴尔虎右旗| 博爱县| 庐江县| 南涧| 自贡市| 高清| 泸定县| 额济纳旗| 天祝| 凤台县| 虎林市| 昆明市| 罗源县| 慈溪市| 赤峰市| 富川| 武穴市| 岗巴县| 苏州市| 邓州市| 大丰市| 榆树市| 榆中县| 鄂托克前旗| 工布江达县|