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
Official documentation: JSON Functions Name Descr...
The following operation demonstrations are all ba...
First, let's talk about the in() query. It is...
Table of contents background Solution New Questio...
MySQL 5.0 has become a classic because of its few...
1. this.$router.push() 1. Vue <template> &l...
Tab switching is also a common technology in proj...
1. Create a test table CREATE TABLE `testsign` ( ...
Table of contents 1. concat() 2. join() 3. push()...
Recently, when I was doing a practice project, I ...
1. I recently installed a new version of Ubuntu. ...
View the dependent libraries of so or executable ...
Regarding how to create this thin-line table, a s...
Table of contents Preface Enumerable properties I...
1. MHA By monitoring the master node, automatic ...