Switching files is a common operation in Linux. When you first learn Linux, the first command you come into contact with is file switching. pwd: Display the current directory ~: root directory /: root directory ls: View all files and directories in the current directory cd usr Switch to the usr directory under this directory cd ../ Switch to the previous directory cd / Switch to the system root directory cd ~ Switch to the user's home directory cd - switch to the previous directory (go back) Code Sample yangw@codecompile:~/RK3288_Lakala/kernel/arch/arm/boot/dts$ cd - /home/yangw yangw@codecompile:~$ pwd /home/yangw yangw@codecompile:~$ cd - /home/yangw/RK3288_Lakala/kernel/arch/arm/boot/dts yangw@codecompile:~/RK3288_Lakala/kernel/arch/arm/boot/dts$ pwd /home/yangw/RK3288_Lakala/kernel/arch/arm/boot/dts yangw@codecompile:~/RK3288_Lakala/kernel/arch/arm/boot/dts$ cd ~ yangw@codecompile:~$ pwd /home/yangw yangw@codecompile:~$ cd / yangw@codecompile:/$ pwd / yangw@codecompile:/$ cd - /home/yangw The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Introduction to reactive function toRef function ref function in Vue3
>>: Summary of MySQL usage specifications
I have seen a lot of MySQL-related syntax recentl...
It is too troublesome to find the installation tu...
need: In the near future, we will implement the l...
Sometimes some docker containers exit after a per...
This article shares the specific code of Vue to a...
Single page application characteristics "Ass...
Table of contents 1. Introduction 2. Advantages 3...
JavaScript clothing album switching effect (simil...
1. Permanent modification, valid for all users # ...
In the horizontal direction, you can set the alig...
This article shares the installation and configur...
Solution process: Method 1: The default kernel ve...
Recently, WeChat Mini Program has proposed adjust...
This article uses examples to illustrate the tabl...
TeamCenter12 enters the account password and clic...