Tag Info

New answers tagged

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, ...


0

Try this: options+=($tab --title="${titles[i]}" -e "bash -c \"${cmds[i]} ; bash\"" ) otherwise the whole expression after -e will be interpreted as the command. To include aliases from .bashrc use -ic instead of c


0

The argument you're giving the -e option is "bash -c command; bash" including the quotes. It interprets that whole string as the name of a command! Try this instead: -e "bash -c 'command ; bash'". This way what gets run on your terminal window is command, and after that runs, you're given a daughter shell, which I assume is what you want. Incidentally, ...


0

Your plugins may be loaded, but just not have a visible effect by default. For example, the line Plugin 'bling/vim-airline' loads the vim-airline plugin, but you will not see the fancy status line until the status line is shown for some reason. (The bottom line in your screenshot is not the status line.) The status line get's shown if there is a split ...


0

Based partly on feedback in the comments, here is the solution I came up with. 1. Create an empty logfile, ~/.lastbackup.log, to contain a record of the time the backup script last ran. 2. Create a wrapping scheduler script, ~/scheduler.sh, to be placed in Gnome's Startup Applications (~/.config/autostart), to check the logfile date at each boot and decide ...


1

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


2

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


0

Have a look at exiftool. Something like sudo apt-get install exiftool cd FOLDERWITHYOURCOLLECTION exiftool -a -r -Model -Directory -Filename -T * |grep YOURMODELHERE > list You will get a file list with content like: CanoScan 5600F 1992/07/05 1992_0705_120100.jpg CanoScan 5600F 1992/07/05 1992_0705_120400.jpg With the model first, then ...


0

Try this command to trace where sudo is hanging strace sudo Why this happens This happens if you change the hostname during the install process. To solve the problem, edit the file /etc/hosts http://serverfault.com/a/65377 Another Link to a similar question: Sudo hangs without prompting for password


0

A couple of questions: Have you changed your hostname recently? Can you run any other sudo command without a hang? e.g. can you run "sudo vi /path/to/file" or (my favorite) "sudo bash"? Do you still notice that sudo hangs in those cases as well? Here is what you can try: (from here: ...


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


0

I am using version 3.10.2. I did find that going Profile Prefrence in Edit option. There is a possibility to change to italic fonts(its default value is Monospace). But i believe that will just change everything in italics. Not just your vim editor.


0

No. I read man 5 terminfo to find out what the terminal ESCape sequences (what you send the terminal to cause the behavior) dealing with italics were called: man 5 terminfo | egrep 'italics|Cap-|Code'|head -n 10| tail -n 4 Variable Cap- TCap Description String ...


0

The reason for the warning is that you are running a GUI app with sudo - this can lead to several problems (one of them: you might not be able to log in again, because your Xauthority file belongs to root). There used to exist a "graphical" sudo - gksudo or gksu or kdesu which prevented that problem. With current Ubuntu versions the proper way to execute ...


0

it's because you are running the application in foreground of you'r terminal press ctrl + z then type jobs command and check the number of that gedit first.ccp process type bg [the number you checked in jobs command ] you won't see those warnings anymore.


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 ...


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/#


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.


0

As you've already been told the main issue was the space in the variable's definition. However, your ~/.bashrc file has a few more issues. First of all, it is not the right place to define the PATH or PERL5LIB variables. These should instead be added to ~/.profile or, if the file exists, to ~/.bash_profile. Also, all of the export lines can be combined ...


3

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


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?


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 ...


0

short answer: re-install Ubuntu from a Live CD or USB. long version: would be a waste of your time. your system will never be clean. but if you insist you could try copying everything (missing) but the /home folder from the Live CD/USB to your hdd. OR do an re-install/repair over the broken system again with the Live CD/USB. OR download the deb file for ...


0

1 - To get started, press Ctrl + Alt + F1 from your desktop. 2 - Then login with your username and password $ sudo rm -r .gnome2 .gconf .gconfd .metacity $ sudo shutdown -r next time dont backup before trying to reset


0

I based my solution on some of the answers given for minimising and maximising windows. In this case, though, I wanted to target just this Gnome Terminal (but not other Gnome Terminals), so I gave it a name using --title: nohup gnome-terminal --title="Tiny Terminal" --window-with-profile=Background --command "$argv" >/dev/null 2>&1& And ...


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


0

Consider using the top command in terminal. The top program provides a dynamic real-time view of a running system. It can display system summary information as well as a list of processes or threads currently being managed by the Linux kernel. The types of system summary information shown and the types, order and size of ...


3

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


1

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


0

I had the same question, and found a solution: Simply use SSH for a real login shell! 1. As superuser, create a dedicated rvm system user for complete isolation, and assign a password: sudo su useradd -m rvmuser passwd rvmuser 2. Install dependencies so that rvm can build rubies without asking for the superuser password: apt-get install curl gawk ...


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 ...


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 ...


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

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: $ ...


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 ...



Top 50 recent answers are included