What program in windows is equivalent to OS's terminal? [closed] - windows

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Switching from programming on Mac to windows, and I need to access github. Don't know where to submit bash commands in order to clone my repositories.

I made the switch last year and I actually don't mind using Windows since I found some nice tools.
This is the best terminal I have found used yet: http://bliker.github.io/cmder/
New link: http://cmder.net/
New new link: https://cmder.app/
The great thing is you can use UNIX commands as well. You can even do something such as:
vim run.bat
to edit a batch file.

The closest built-in equivalent is cmd.exe. It is, however, not a bash shell: the command set is very different.
If you specifically need bash, you could install Cygwin.

If you're going the command line way for git access, you're probably looking for msys git: https://msysgit.github.io/

Related

Is there a function to resize terminal? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I searched around a lot but found just how to get terminal size, but not how to resize it.
Are there any solutions?
I tried with \e[8;50;100t but it doesn't work on windows.
You will have to use the Windows API to do that. Here a Stack-Overflow answer that gives you the correct API calls needed to do that: How do you programmatically resize and move windows with the Windows API?
From Go you can call the Windows API either using CGO or using syscall. Here an article that uses syscall which is easier to get started: https://medium.com/#justen.walker/breaking-all-the-rules-using-go-to-call-windows-api-2cbfd8c79724
Note that you should always protect a file using Windows specific commands with a build flag. This won't work for other OSs. If you need this to work for other OSs, too, you need to implement different versions for the OSs you want to support.

Is there documentation for configuring and using terminal? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I just want to use my computer from the terminal. I have read through the Apple Terminal Help documentation, but am looking for more instruction.
i found this 2003 pdf doc. it is pretty comprehensive and still relevant to this day. i suggest setting up a developer account if you are keen to learn more.
As for the things you intend to do on terminal,
man is your great dictionary assistant
cd, ls and pwd are your great buddies in navigating around the files and folders
curl is your great bestie for browsing web pages
.bash_profile is where your configuration lies
Hope this helps!

Is there a built-in Windows command-line editor? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
When I connect to a 64-Bit Windows server via PowerShell e.g., is there some built-in command-line tool that allows text editing (assuming that I cannot/do not want to install software)?
For Linux, e.g., I can expect that there is vi installed on virtually every system. For old DOS/Windows version, there has been edit.exe which seems not to be there anymore.
(not enough reputation to comment, so will do it here)
As far as I know, there's not a built-in editor; however, a workaround would be to use:
type CON>myfile.txt
As explained here, this will forward the input in the console to your file. Not nice, not powerfull, but it may help sometimes.
Please note this WON'T work through Powershell, but you may use it with winrs -r:server cmd or with psexec.

Custom (interactive) shell with Python [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm currently trying to make some small shell-like utility for a custom script I wrote, so I can easily work with it (it's rather simple, so an interactive shell would be perfect).
Do you have any resources for me on how to create a shell in Python? I spent googling for a while, but all I could find was information about IDLE and similar Python interpreters. But I would rather want to know how to write a completely custom and command line based shell.
My approach would be hooking the stdin/out for commands, but given that the Python library offers so many great utilities, I want to make sure there if there is no better way.
The cmd module in the standard library could be a start -- if you have any trouble using it, please post more specific questions (ideally with some toy example showing what you're trying to achieve and what you're getting instead!).
You might have a look at pyparsing. It is definitely only about lexing and parsing, but that's definitely the hardest part of the problem.

Where is the code for "tee" in Mac OS? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Where is the code for the terminal command 'tee' located in Mac OS?
[Added] Is it possible to read the exact code, that my mac is using (not the online codes)?
By "code", I guess you mean source code, right? See there
EDIT: I see the question has been made more precise.
See exactly in the "plain" BSD code here as a Apple Developer login (free) is required to browse their code.
It's BSD, not Linux, code.
http://www.pell.portland.or.us/~orc/Code/bsd/bsd-current/tee/tee.c
http://www.ss64.com/osx/
Do you mean, where is the executable? If that's what you're asking, it's at /usr/bin/tee. You can locate any command in your path by using the which utility. It will print out the full path to the command. For example:
$ which tee
/usr/bin/tee
$
If you're asking about the actual source code, a number of answers are already here that provide you with links to Apple's source code. The utilities themselves are split amongst a number of packages and there's no real index, so you'll have to browse the names and check packages that sound like they might contain the source for any given utility.
Here is the source code of Apple's unix:
http://developer.apple.com/Darwin/
If it is up-to-date this is the exact code that your mac uses.

Resources