Tag Info

Hot answers tagged

31

Yes, it is. A picture worth a thousand words: So, you have to redirect the output of your command using > operator to /dev/pts/#. You can find # using who or w command. If tou want to redirect and the errors, use: <command> >& /dev/pts/#


5

Something like this for your $HOME/.bashrc : ng() { gnome-terminal -x sh -c "$*; bash"; } This will run a command and shows the result on a new terminal window. Examples: ng ls -l ng echo foo Edit: To consider aliases from the $HOME/.bashrc use this instead: ng() { gnome-terminal -x bash -ic "$*; bash"; } then the output of ls should be colored ...


3

Did you check that the file exists, other than by using locate? Locate uses a database, so you may be looking at stale information. Three solutions: Use the --existing option for locate Run sudo updatedb before running locate Try again tomorrow, after the daily cron jobs have run


3

Gnome-Terminal has no option to start minimised. The following is more a workaround to do this: First wmctrl is needed, but not the version from the repositories because this version doesn't have an option tho minimize windows. (If you have already installed wmctrl you have to remove it). Download the version from github ...


3

pidof <insert process name> ex: user@localhost:~$ pidof firefox 31838


3

mv /home/www/project/test_git/* /home/www/project/


2

From tty1 you can open the gnome-terminal in tty7 (where the GUI should be started) by running the following command: env DISPLAY=:0 gnome-terminal See some more explanations in this post.


2

In unix terminology, the short answer is that terminal = tty = text input/output environment console = physical terminal Console, terminal and tty are closely related. Originally, they meant a piece of equipment through which you could interact with a computer: in the early days of unix, that meant a teleprinter-style device resembling a typewriter, ...


2

This works in Unity & Gnome, similar things are there for other desktop environments (for KDE's dolphin file manager, I think you can set what you want it to do by right-clicking on the executable file and selecting 'Open With...' > 'Other') Right click on the file, and go to Properties, and permissions. Make sure this is ticked : (You need this ...


2

What about minimizing your window after creating it? $ (mate-terminal --window-with-profile=Background --title=xxx --command top >/dev/null 2>&1 &); sleep 0.1; xdotool windowminimize $(xdotool search --name xxx|head -1) I use Mate instead of Gnome but it should work just the same if you replace mate-terminal with gnome-terminal: $ ...


2

What do you mean by interface? For most people the command line (over SSH if remote access is required) is plenty. Xubuntu is made up of all the same packages as Ubuntu (as is Ubuntu Server). Anything you can do in one of them (eg sudo apt-get install lamp-server^) will work in the other.


2

Home. Plus you may want to know about sudo !!, which repeats the previous command, but with sudo in front of it.


2

Install gconf-editor: sudo apt-get install gconf-editor then you can find the settings here: Set use_custom_default_siz to false. Above in this window you will also find the two size values if you only want to change this: You can also change the settings from commandline or create a script-file with: gconftool --type Boolean --set ...


2

I guess it is because of the space in the line export PERL5LIB=PERL5LIB:/home/lib-11/Downloads/mirdeep2 /lib/perl5/site_perl/5$ (Notice the space between mirdeep2 and /lib/perl5) It should be export PERL5LIB=PERL5LIB:/home/lib-11/Downloads/mirdeep2/lib/perl5/site_perl/5$ (Without space)


1

GNOME wiki suggests sourcing vte.sh from your ~/.bashrc profile. I.e. add this line to your ~/.barshrc file: . /etc/profile.d/vte.sh This way Ctrl+Shift+N in gnome-terminal will inherit current working directory.


1

If you have GNOME Classic, right mouse click on the terminal icon, select "Properties" and set the command to gnome-terminal --geometry=80x24 . If you have Unity, you can create a launcher with this command in that way: How can I create launchers on my desktop?


1

CTRL + a (tends not to work if you using SCREEN though since screen uses Ctrl-A as a control switch.)


1

Two more useful things to know about this... To execute a specific command from your history, you can just type an exclamation point followed by the number of the command as listed by history. So, to re-execute command number 510. !510 To rerun your previous command just type two exclamation points. So when you run a command that needs super-user ...


1

$$ shows PID of script, which is running. echo $$ Also for C/C++ see http://linux.die.net/man/2/getpid .


1

get all pids : $ ps -A -o pid get app pid : $ pidof <app name> get app name from pid : $ ps -p pidnumber -o comm= image demo http://i.stack.imgur.com/70pDW.png



Only top voted, non community-wiki answers of a minimum length are eligible