I'm making a command shell where I'm using the child to change the directory of shell, but I can't get it to change an array's contents;
In the end it just prints the current directory instead of "/". The child has no effect on the newDirectory array. What am I doing wrong? Is there a way to make the child change the contents of the array?
I want to let some of my friends access my computer by making them user accounts. They will mostly access my computer by sftp and ssh, but they could also sometimes access it at my home.
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)
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)
I have a PHP script that creates a directory and outputs an image to the directory. This was working just fine under Apache but we recently decided to switch to NGINX to make more use of our limited RAM.
For my company, I would like to create a single directory for each user in a server. Each directory must be personal, and I would like to create a desktop link to that directory.
My .cshrc file contains the following:
set prompt = "%{\033[0;32m%}%S%B\! <%~> :%b%s %{\033[0m%}"
Each time I cd out of my home directory, the prompt formatting resets to display:
33 /~/newdirectory/ :
What am I doing wrong?
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
I have created directory a created has these permissions - the other user has
drwxr--r-- 5 user user 4096 2012-09-15 19:30 sites
When do an ls -l on the directory as another user
ls -l /home/user/sites
this is the directory output. I thought without the x bit set on that directory the filenames wouldn't show at all.
d????????? ? ? ? ? ? dev.user.com
-?????????