Questions tagged [cd]

cd is the "change directory" command offered by most shells. For CD-ROMs, please use the [cd-rom] tag.

737 questions
-1
votes
1 answer

PHP GD: Black background transparent

I have the problem that a picture is transparent (which it should be) but the part where a "blend mode" is, is still a bit black but it should not be. Image 1: Image 2: Image 3: and the output you can see in the output the small black circles…
SirSonay
  • 41
  • 5
-1
votes
2 answers

basic CLI program in C

Okay so overall im trying to complete a basic CLI C program which will complete functions such as clear, quit, cd, ls, help (bring up the unix man) etc.. i altered my code and so far i have this, im getting segmination error when trying to execute…
adam
  • 9
  • 1
  • 2
  • 6
-1
votes
1 answer

bash functions. help me understand

Trying to set up a shortcut that will allow me to cd into a directory and list the files within in one go here is what I got so far. My knowledge is limited, this is pretty much just copy and paste from sources online, don't know what I'm doing,…
m147
  • 29
  • 4
-1
votes
1 answer

Up a Directory Script?

I've been trying to create a bash script that can move up a directory. I created this script, but when ran it does not execute anything. I tried adding a print statement to it, and that does work. Is there a certain way I should be executing…
ariagno
  • 532
  • 1
  • 15
  • 29
-1
votes
1 answer

How to cd into a folder using linux alias?

This alias searching a folder and printing out the location of the folder. findme 1234567 --> Searching and printing /xxx_data/xxe/TK/1234567/ --> This is the output of above alias. alias findme='program -x SR $1' --> This is…
-1
votes
1 answer

Error on runing a raw iso on virtualbox

I have download a raw iso cd from the internet. Try one: I'm import the iso on the vbox storage but when it boots i get "Fatal: no bootable device". Try two: Convert the iso to vmdk with VBoxManage , imported to vbox storage but the error still…
spiros_m
  • 41
  • 1
  • 4
-1
votes
1 answer

I managed to get the command prompt to open, now how do I get it to write lines?

Basically, I want the command prompt to type and execute the command "cd/" by itself. Here's the code I used to open the command prompt: (Windows Form Application Visual c#) private void button6_Click(object sender, EventArgs e) { …
-1
votes
1 answer

basic shell - ls command after chdir()

I'm trying to create a basic shell, but I have a problem. The shell changes directory just fine, and outputs an error if the user inputs an invalid directory. The shell also has an internal command for "pwd" and prints out the new working directory…
-1
votes
1 answer

cd command in IPython vs. Spyder

I know that many of the working directory prompts that work in IPython also work in Spyder as long as they're prefaced by %. For example, pwd and ls work in IPython, but to run the same commands in Spyder they need to be prefaced with a % such as:…
Ryan Chase
  • 2,384
  • 4
  • 24
  • 33
-1
votes
1 answer

Bash - Write a function that opens the closest directory with a certain name

I want to create a Bash function goto that takes 1 argument If the current directory contains a directory by the name of the argument, cd to it If any of the directories of the current directory contains it, cd there etc... if all paths stemming…
Cyoce
  • 253
  • 3
  • 14
-1
votes
2 answers

Changing the current directory in Java to implement "cd" command in linux

I'm trying to build a command line interpreter that implements "cd" command in linux. I don't know how the function that suppose to do that shoud work. I know that this question has already been answered here: Changing the current working directory…
dili
  • 31
  • 8
-1
votes
1 answer

How to execute command by python?

I want to give a directory from raw_input of user and have cd to that directory by python I used that code but it doesn't work for me: a=raw_input("Enter The Dir :") import os os.system("cd "+a) but it doesn't change the current directory of the…
BiriBora
  • 43
  • 7
-1
votes
3 answers

Issues with `cd` after `alias`

I read this command somewhere on Twitter and executed it in my Terminal and it seems it removed the cd package completely from the OS. alias cd="say -v cello" What does this command do? Can you breakup the explanation of this command? How do I…
Govil
  • 2,034
  • 20
  • 20
-1
votes
1 answer

Change to xth directory terminal

Is there a way in a unix shell (specifically Ubuntu) to change directory into the xth directory that was printed from the ls command? I know you can sort a directory in multiple ways, but using the output from ls to get the xth directory? An example…
Benjamin Kaiser
  • 2,177
  • 22
  • 24
-2
votes
0 answers

Shell script code can not be executed in fish shell even if I specify shebang

I'm runnning fish shell for a test for a few days. So i decided to use my already shell script programs. All of them are working fine, except for one: mkcd Here is the code: #!/usr/bin/env bash dir=$1 mkdir -p "$dir" cd "$dir" || exit 1 The…
Micael Viana
  • 107
  • 8