Change to /var/log.
cd /var/logMove to another directory. Use “cd -” to return to the previous one.
cd [-L | -P] [DIRECTORY]Change to /var/log.
cd /var/logReturn to the previous working directory.
cd -| Option / clause | Description |
|---|---|
-L | Follow symbolic links and keep the logical path (default). |
-P | Resolve symbolic links before changing directory. |
- | Change to the previous working directory. |
-- | End option processing before the directory argument. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.