Synopsis
cd [-L|-P] [DIRECTORY]
cd -
Description
The cd builtin command is used to change the current working directory
* to the given directory (cd DIRECTORY)
* to the previous working directory (cd -) as saved in the OLDPWD shell variable
* to the user's home directory as specified in the HOME environment variable (when used without a DIRECTORY argument)
Is there any way to jump back to the previous working directory after doing a cd to a different directory?
My use-case is that I'm traversing a directory structure for a Java project, and I'm expecting that the current directory has only one sub-directory. So, I type cd and hit Tab and Enter rather quickly.
Question: Can I create an encrypted directory with ecryptfs that exists outside of my home directory, which uses the same decryption credentials that my encrypted home directory uses?
Here's the situation:
Code:
/dev/sda1 (SSD): /
/dev/sdb1 (HDD): /home
/dev/sdb2 (HDD): /var and /tmp
The above works fine, but I have 80GB free on /dev/sda1 that I'd like accessible from my home directory
I am trying to create few scripts that would change the working directory of the main shell/terminal. Not able to do so. I tried the following
File p1.sh
#!/bin/bash
cd /home/mtk/work/project1
File code.sh
#!/bin/bash
cd /home/mtk/templates/resusable/sampleCodes
But I am aware that the above would change it only for itself i.e.
I'm searching for just one command — nothing with && or | — that creates a directory and then immediately changes your current directory to the newly-created directory. (This is a question someone got for his exams of "linux-usage", he made a new command that did that, but that didn't give him the points.) This is on a debian server if that matters
Hello,
I installed Tectia client version 6.2.4.212 on our unix boxes.
I am using following command to check the disk usage in my home direcory.
du -sk * | sort -n
I am getting the following output
273240 AQP
707720 oradiag
3176872 J2EEServer
23628720 var
100000910
I get a directory of size 100000910 without a name in the last line . How can I access/delete this ghost directory in my home directory.
I have recently installed Raspbian into a Raspberry Pi. As part of the installation process I changed the user name and group from the default (pi) to my own (let's call it user) using usermod and groupmod. I also moved the home directory (/home/pi) to the new user name (/home/user) using usermod.
Hello,
I recently upgraded from Ubuntu 10.10 to 12.04. Im not used to Unity, yet.
The first thing i usually do on a new installation is to clear my home-directory. Deleting all the directories i don't need, including the 'iPod'-directory.
This works brilliant, and when i delete the 'Desktop'-directory, the content of my home-directory is shown on the background.