Skip to content

Tag: terminal

Java Linux Terminal in JPanel

I am making a Scripting Editor and would like to be able to run the Bash/Shell/Python/etc. scripts in the program… So far, I have a way of running them, but there is no way for the scripts to have user input; here’s the code: Any help/ideas are greatly appreciated!!! Answer This is a modification …

Linux terminal installation yes/no error

I want to set up something, example: phpmyadmin; Terminal CODE: When I enter this code a yes or no question is seen. I answer ‘yes’ ‘y’ but it is cancelled. Answer It asks you: Note the capital “Y”, which means it’s selected by default, so pressing “enter”…

Screen, process kill on disconnect?

Am hoping this can be cleared up : Given, screen session running, and open (attached) in a terminal. Question. If the terminal session is terminated, without being detached from the screen session, would the active process running in the screen session be killed/halted/stopped etc. Thanks Answer It is in the …

Delete last executed command in Linux terminal

I want to do a clear but only of the last command I executed. Here is a example so you can understand it better: If that’s the current state of the shell I want to execute a command (for example echo a > /tmp/foo) and keep the console: So it should be something like echo a > /tmp/foo && cl…

Is there a way to ‘store’ Sudo temporarily

I’m quite new to Linux. I remember using a tutorial were you were able to declare your sudo (+password) at the start and then use terminal without having to do sudo or import your password again. I.e. Sudo yum-get update -> yum-get update. Sorry if this is a very obvious question, I honestly don&#821…

Woking With BMP File in C++, Ubuntu

I am trying to work with a bmp file in linux with g++ compiler. I am using C++ language. I Need to load a .bmp file from the standard input. for example: So I need a Code to do this job. I think storing the whole .bmp file is good by I don’t know how to do this. I Tried