I have just started using cern's ROOT and couldn't find a command to clear the terminal. The beginner's manual and the user guide don't seem to mention anything about a command similar to clear in bash.
To be clear, what needs to be typed after root[number] prompt so that the console screen clears out and root keeps running?
Thanks to #MaryChang
.!clear
P.S.: .!cls for windows; just clear or cls on root prompt doesn't work (as of ROOT ver 6.16/00)
Related
this is my very first question in here since I just started coding, and I hope it's an easy one. Have found likewise questions on here, but none of their solutions seemed to work for me, or I just didn't know how to pull them off. So here goes:
How do I change the default directory, when I open up Terminal on my Mac version 10.12.4? Whenever I open, it says this of course:
Last login: Thu May 17 09:02:07 on ttys004
Mikkels-MacBook-Air:~ MikkelMalmros$
Then I have to use the "cd desktop/coding" to move to the folder I created for programming. I would like to skip that step, so it automatically opens up in there. I've tried going to preferences and changing "Shell opens with command" thing and put in "cd desktop/coding". Whenever I open up Terminal then, it just says "process done" and I can't write anything at all.
So what am I doing wrong, and is there a way to fix this small problem for me?
Add 'cd path/to/directory' to .bash_profile
'cd path/to/directory'
Found at https://superuser.com/questions/193513/how-can-i-change-the-startup-directory-of-my-terminal-on-os-x
I have a simple problem in which I can launch a program with the Run dialog n windows, but not from the CMD (or PowerShell).
The command is steam://run/<app-id>
I would like to know how to run the same command from the console. I tried steam steam:// Steam.exe but none worked (the last one only opened steam)
In the command window, use the start command
start steam://run/<app-id>
Not really the right forum for this Q, but a quick google leads to Valve's pages that show the command-line options for steam.exe. I'd recommend a google yourself, but for completeness it looks like steam.exe accepts a -applaunch parameter.
Let me preface this by saying I've read enough to believe this has something to do with the login terminal and .bashprofile, etc. But I don't understand enough about the underpinnings of the Mac terminal to be able to solve this.
When my prompt reads
my-mac:~ [username]$
... where [username] is my login name, I generally type in
cd doc*
to go into my Documents folder. However, occasionally this command doesn't work. For instance right now I am getting the result
bash: cd: doc*: No such file or directory
Even when I close and reopen Terminal, I'm still getting this error. Can someone please help me understand both how to fix this and the root cause of why this happens?
Previously, when launching the Cygwin terminal, a console will popup and the line will say:
username#PCName ~ then a blinking cursor after $.
Now a blank console appears and nothing is on the console screen but a blinking cursor...
The shortcut seem to be directing to the right path "C:\cygwin\bin\mintty.exe -i /Cygwin-Terminal.ico -" so I don't know what's going on.
How do I go about fixing this issue? Do I have to look into the Environment variables? If so what do I have to look for?
I'm running Windows XP Professional x86.
Try changing the shorcut to this:
C:\cygwin\bin\mintty /bin/env CHERE_INVOKING=1 /bin/bash -l
Since you say it starts up successfully using cmd, it could a problem starting up you mintty environment. Try going into your home directory and deleting (back it up somewhere else if you want to be able to bring it back) the .minttyrc file and then try to start up again.
If that doesn't do the trick, try to go a little bigger and do the same with the bash environment files. Back up .bashrc, .bash_profile, .bash_aliases (if you have it) and .inputrc and replace them with the default sample files that are in the /etc/skel folder, then try to restart again.
When I type 'http://www.google.com at the Windows Run: prompt it launches my default browser.
But when I do it at the CMD or Commnad prompt it does not. I assume that there is some form of RunDLL command being issued but I can't find out what.
Does anyone have any insight?
I think it's the equivalent of using START.
If you try
START http://www.google.com
from the command line (or a batch file), it should work fine.
What Jon said appears to be correct. I tested it with mailto:someone#somewhere.com. Interestingly if you wish to make run work like the default behaviour of cmd, you can do the following:
Start -> Run -> cmd /c http://www.google.com. Not sure why anyone would ever need to do that though!