The Window Title of Command Prompt [closed] - cmd

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I don't want the window title name of the command line to change. When i make shortcut or open it in different location, window title name of cmd is changing. How can i stop it?
Thanks.

In short: you can't. CMD.EXE internally calls SetConsoleTitle (or some equivalent), and there isn't an option to stop it from doing so.
What you can do is manually reset the title after each command (for example when you run a batch file with multiple commands inside and want to end up with some specific title). Use the title command to do so from within a batch file or from the command prompt interactively.
(There are also more involved options, but they all have quirks.)
I think some console alteratives (like Windows Terminal or ConEmu) let specify that the title should not change, but I'm not sure, you'll have to try.
Maybe clarify your question with what you are really trying to achieve, or why the changing title is an issue for you.

Related

How to show output one screen by another [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed last year.
Improve this question
Hi I use command "cat ansible.cfg". Once the command is entered, all the output goes away on the screen. I want to see it one screen by one. What correct command should i use? Thank you
This isn't really an ansible question, as you are really just using the cat command to view a text tile that happens to be an ansible config.
See this link for information on how to view files in Unix/Linux: https://www.baeldung.com/linux/files-cat-more-less
In short, however, less and more are both utilities for viewing files one page at a time like you requested. Just enter more ansible.cfg and then use the space bar to advance a page at a time.

Is there a way to see what command are run on your computer? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I was wondering how I could see the actions that are done on my computer but on my cmd prompt.
For example: Imagine I click on the shortcut Google Chrome on my desktop, then this will appear on my cmd prompt (or anywhere else):
C:\Program Files (x86)\Google\Chrome\Application\Chrome.exe
modulo the - and -- arguments but that was just for the example.
Thanks!
Try Process Monitor (also called ProcMon), filtered on ProcessCreate. It'll list every process that gets created, along with the arguments and lots of other useful information.

How do you change the prompt of your terminal? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
right now my terminal reads Sean:~ A2014$ and I don't understand how to change it so it doesn't say Sean. Is there a general terminal name or are they relative based off of your system?
I'm presuming you're referring to the prompt? (Next to where you input commands in the terminal). If you want to change the title of the window, i think you can go to Shell>Edit title in the top bar while terminal is open.
On MacOS you should be able to edit/create a file in ~ (The home directory) called .bash_profile. In this file you can change (or add if it's not there) export PS1="{settings}" where {settings} is what will show up as the terminal prompt.
You can do this with a text editor like nano;
In a terminal you would type cd ~ and then
nano .bash_profile to create/edit it. Just make sure not to edit any PATH variables!
There are a bunch of bash prompt flags to display things like time and computer name you can look up, but you can just use plaintext as the prompt if you like. (A single $ is pretty common)

What is the Windows command-line analogue of the Mac command 'open'? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
Mac OS X has a neat little command-line function 'open'.
% open <file>
Does whatever a double-click on that file would do. But via the command-line (Terminal).
Does Windows have something like this? How do I get a non-executable file to be opened with the default program in the OS for that file-type?
I think it is start "<file>".
If it's a recognised file type, you can simply type the filename, and it will open it in your preferred application. For example,
my_favorite_porn.mp4
is not something you should do when your wife is nearby :-)
Note that, if it's a Windows application, it will auto-magically satrt in the background and your prompt will be returned to you. If it's something like a command-line application, it will run in the context of the current command window. If you want to start those in a separate window, you can use:
start cmdlineprog.exe
­­­­­­­­
explorer <file>

How to add arguments to links in gnome-shell menu [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I'm using gnome-shell with Ubuntu 11.10. At the left edge there is menu with icons. Where can I edit the command that is launched after clicking them? For example, there is gvim icon and I want it to start with -geometry flag. I assume it is in some config file, but where?
To add startup arguments you have to modify the Exec parameter of the .desktop file. The gvim.desktop file is in
/usr/share/applications/gvim.desktop
Add the arguments you need to the line.
Exec=gvim -f %F
This will affect all users on your system. If you want a custom launcher file you can create a .desktop file in ~/.local/share/applications.

Resources