cd
cd is a Linux command in the File Operations category, rated beginner difficulty. Changes the current working directory. The syntax is cd [directory]. Key options and parameters: directory — target directory path. It returns none (changes current directory). A practical example: cd /var/log cd .. # Go up one level cd ~ # Go to home directory cd - # Go to previous directory A close relative is ls, which lists directory contents. One of the most frequently used commands. A close relative is pwd, which prints the current working directory path. A close relative is mkdir, which creates one or more directories. More about this category: Linux file operation commands — ls, cd, cp, mv, rm, mkdir, touch, and more. Create, delete, copy, and manage files and directories. Related File Operations commands: ls, pwd, mkdir, rmdir, rm, cp, mv, touch.