The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
0answers
24 views

Set CMD Prompt to always be the current directory name in Windows XP? [duplicate]

I would like my command prompt to display just the directory name I am currently in, not the full path. If I am working in C:\Mystuff\Junk\ I would like the command prompt to display: Junk> If I ...
0
votes
0answers
12 views

Current Working Directory at the Top of the Terminal (Not in Tab Title)

Is it possible to do this in bash or do I need to use something like screen? This is on Mac OSX running bash inside of the terminal. I'm looking for a line that just sits on top of everything and is ...
-1
votes
1answer
21 views

How would you count every occurrence of a term in all files in the current directory?

How would you count every occurrence of a term in all files in the current directory? - and subdirectories(?) I've read that to do this you would use grep; what is the exact command? Also, is it ...
3
votes
2answers
175 views

Xargs: change working directory to file path before executing?

I have a large folder of RAR archives. There is a significant hierarchy of folder levels. I want to unRAR the entire collection of archives all at once. I have the following one-liner, which will ...
1
vote
1answer
178 views

How to count the number of times a file/directory has been opened?

I'm trying to find the number of times a file has been opened (since the OS inception). I'm thinking of doing this via stat, but most flags only return the difference between the LAST time it was ...
0
votes
2answers
35 views

Management of directories and subrutines

From the current directory %CD%, I need to go inside a subfolder and execute a subrutineA, then go back to the %CD% directory and go to the next subfolder and execute the same subrutineA, this process ...
80
votes
6answers
21k views

Change ConEmu's default start directory

How do I change ConEmu settings such that always when I open it, it will start the cmd as a directory of my chooseing instead of the concmu folder?
0
votes
0answers
348 views

Getting a setting, the chdir value, out of GNU Screen

I've been using screen's chdir command to set a new working directory for new screen windows, more on that later. What I need to do is find out what the setting was before I set it, so that I can set ...
9
votes
1answer
5k views

Start bash shell (cygwin) with correct path without changing directory

I need to run a cygwin shell script without changing the working directory, from outside the cygwin environment. If I run just \path\to\bash.exe -c command, then the path is not set correctly and ...
0
votes
2answers
2k views

Setting CMD CD to the directory that the batch was run in

I'm trying to create a batch script that will open a program in a different environment (so I can make a portable version of it). I use this set APPDATA=%CD%\data to tell it to do that. The problem ...
11
votes
6answers
12k views

Temporarily change directory for single batch-file command

In shell-scripting if I need to run a command from a directory I can us a subshell to ensure I return to the original context: (cd temporary/new/directory ; command) # now I am still in original ...
2
votes
5answers
1k views

Changing working directory of parent script from 'sourced' script

I want to change working directory of my script by another script that has been included. First script: #!/bin/bash pwd source script2 pwd Sedond script: cd .. pwd The result is following: &...
2
votes
3answers
1k views

Using screenrc, how can I make `C-a c` open a new window at the current window's working directory?

Using screenrc, how can I make C-a c open a new window at the current window's working directory? By default it appears to open the new window at the working directory at the time the original screen ...
3
votes
1answer
7k views

git: get current working dir

How I can get current working dir from console using git? something like: if I'm in: ~/projects/someproject/somesubfolder/, the console command should say /home/va1en0k/someproject/ (if there is a ....
1
vote
1answer
2k views

How to open a new terminal tab in Mac OS X with working directory same as the current terminal tab [duplicate]

Possible Duplicate: OS X Terminal.app: how to start a new tab in the same directory as the current tab? This is the default behavior in Ubuntu: when you open an new tab in a terminal, the ...
3
votes
3answers
874 views

How to get tty shell working directory?

Is it possible to get working directory of any of my tty shells? So\ get working directory of any shell in /dev/ttys??? belonging to me. I use OS X.