The cd command only prints the output if there’s an error, so you might want to immediately use the ls command to look man lsįor each operand that names a file of a type other than directory, ls displays its name as well as any requested, associated information.įor each operand that names a file of type directory, ls displays the names of files contained within that directory, as well as any The cd command will take a directory name as a single argument and move you there. So, after you’ve learned everything about the content in the directory, you probably want to go somewhere else.
Here’s how you could check the long list view on the ls -lhS Lrwxrwxrwx 1 root root 31 Sep 3 06:15 vmlinuz.old -> boot/vmlinuz-4.15.0-112-genericīy the way, if you want to check some specific information about a single file, you can add its name the same way we did with the directory. Lrwxrwxrwx 1 root root 31 Sep 3 06:15 vmlinuz -> boot/vmlinuz-4.15.0-115-generic Lrwxrwxrwx 1 root root 34 Sep 3 06:15 initrd.img -> boot/initrd.img-4.15.0-115-generic