pwd: Displays the current directory
~: Root directory
/:Root directory
ls: view all files and directories under the current directory
CD usr switch to the directory usr directory
cd ../ switch to the parent directory
cd / switch to the root system
cd ~ switch to the user's home directory
cd - switching to a directory (back)
chestnut
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
pwd: Displays the current directory
~: Root directory
/:Root directory
ls: view all files and directories under the current directory
CD usr switch to the directory usr directory
cd ../ switch to the parent directory
cd / switch to the root system
cd ~ switch to the user's home directory
cd - switching to a directory (back)
chestnut
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