Sharing of several practical commands commonly used in embedded systems

When we started to learn embedded systems, we were not familiar with linux systems. Although we have mastered some things after surprise learning, we still encounter problems and feel that our reserves are not enough. This chapter will share a few niche ones. Skill.

cd command

The commonly used cd command will not be described in detail here, but today we will only talk about one - command, let's look at the following example

forlinx@ubuntu:/mnt/hgfs/share/runtime$ pwd
/mnt/hgfs/share/runtime
forlinx@ubuntu:/mnt/hgfs/share/runtime$ cd ~
forlinx@ubuntu:~$ pwd
/home/forlinx
forlinx@ubuntu:~$ cd -
/mnt/hgfs/share/runtime
forlinx@ubuntu:/mnt/hgfs/share/runtime$ 

Then what is the use of this, that is, we finally cd to a relatively deep directory, only to find that the work is not finished, and we have to return to the previous directory, and manually input step by step, which is very troublesome, so at this time You can use "cd -" and that's it.

TAB

The tab command is also a commonly used command in the linux system. Basically, the most used one is completion, which is to complete the file name and directory name; what we are talking about today
is tab even in specific cases.

Guess you like

Origin blog.csdn.net/mainmaster/article/details/130387415