Tag Info

Hot answers tagged


Run a command without putting it in history: Simply put a space before the command. Bash will ignore commands with a prepended space: Example: Spaceecho "Some secret text" Note: This only works if the HISTCONTROL variable is set to ignorespace or ignoreboth. Disable history temporarily: Run Spaceset +o history or Spaceshopt -uo history to disable ...


I've recently come to like setsid. It starts off looking like you're just running something from the terminal but you can disconnect (close the terminal) and it just keeps going. This is because the command actually forks out and while the input comes through to the current terminal, it's owned by a completely different parent (that remains alive after you ...


The short answer is that terminal = text input/output environment console = physical terminal shell = command line interpreter Console and terminal 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, ...


You need Terminator: sudo apt-get install terminator For four terminals at start-up, do the following: Start terminator Split the terminal Ctrl+Shift+O Split the upper terminal Ctrl+Shift+O Split the lower terminal Ctrl+Shift+O Open Preferences and select Layouts Click Add and enter a usefull layout name and Enter Close Preferences and Terminator Open ...


Ubuntu Mono from the Ubuntu Font Family (font.ubuntu.com) is the default GUI monospace terminal font on Ubuntu 11.10. Terminus Font (terminus-font.sourceforge.net) is the default font on the Linux console (Ctrl+Alt+F1, $ /bin/setfont /usr/share/consolefonts/FOO.psf.gz) GNU Unifont (unifoundry.com) is the default font for the CD bootloader menu, Grub ...


You can simply delete the history of one particular terminal session by adding command history -cw after working. Do not close the terminal before giving the command.


To change your directory colors, open up your ~/.bashrc file with your editor nano ~/.bashrc and make the following entry at the end of the file: LS_COLORS=$LS_COLORS:'di=0;35:' ; export LS_COLORS Some nice color choices (in this case 0;35 it is purple) are: Blue = 34 Green = 32 Light Green = 1;32 Cyan = 36 Red = 31 Purple = 35 Brown = 33 Yellow = ...


By joining the font beta testing team, the PPA details given in the sign-up email let you enable a Personal Package Archive that contains: fonts-ubuntu-font-family-console ("Ubuntu Font Family Linux console fonts, sans-serif monospace") after enabling the PPA you can do: Ctrl+Alt+F1 sudo apt-get install fonts-ubuntu-font-family-console setfont ...


A visual representation. Terminal Something you can sit down at, and work like a boss. Console Some hardware that does a bunch of stuff. Another example of a console, would be a video game console such as a Super Nintendo [where you can play Actraiser] shell Basically an application for running commands. Command Line [Interface] Basically ...


shopt -uo history should do it best. Nuking the HISTFILE (et al) variables won't stop your Up history being logged, it just won't push it to disk. This may or may not be a positive thing for you, but given you mention it, I guess you want something better. Changing the shopt history setting stops the whole history mechanism from triggering. You can turn ...


Here's the two ways I'd go with. Firstly, not running it from a terminal; hit Alt+F2 to open the run dialog, and run it from there (without &). From a terminal, run nm-applet & But do NOT close the terminal yourself. That is, do not hit the X-button to close, and do not use File -> Exit from its menubar. If you close the terminal that way, it ...


If you use Upstart 1.4 or newer, put console log into your Upstart job and all the output to stdout/stderr will end up to /var/log/upstart/<job>.log. Then you can do tail -f /var/log/upstart/<job>.log & to have the output appear in terminal.


You can add the following code to you .bashrc file: parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' } PS1="${debian_chroot:+($debian_chroot)}\u@\h:\w\$(parse_git_branch) $ " You can move around these component parts to configure to your tastes, for example to prepend $(parse_git_branch) and not show the ...


Alt+[unicode in decimal using numpad digits] works at the console, providing your environment is properly configured to expect UTF-8 (via LOCALE or LANG environment variables). In your case, you should enter Alt + 201.


I've found a solution that works from this forum post In short: Open /etc/default/grub with your favorite editor as root. Localize the line that says GRUB_GFXMODE= ... and change it to the resolution you want. Add another line for a new variable called GRUB_GFXPAYLOAD with the same resolution. It should look similar to this: GRUB_GFXMODE=1440x900x32 ...


Another way to kill the current shell without logging to the history file is to do: kill -9 $$ This causes bash (and probably other shells too) to send the SIGKILL signal to itself, killing it on the spot and preventing it from writing anything to disk.


The solution is the bash builtin compgen. To grep 'svn' from all available commands and command aliases accessible through $PATH, type. compgen -ac | grep svn Want to search from a certain prefix (eg all commands that start with ecrypt)? Use regular expressions.. compgen -ac | grep "^ecrypt"


This helped me on Ubuntu 14.04 with ESXi 5.5 : :~$ sudo vi /etc/default/grub Change line to: GRUB_CMDLINE_LINUX_DEFAULT="splash vga=792" :~$ sudo update-grub :~$ sudo reboot -r now Use 795 or 799 for higher resolution, and see: http://www.pendrivelinux.com/vga-boot-modes-to-set-screen-resolution/ for more details.


The text you are looking for is inside /etc/legal The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Before you start editing this: as far ...


I solved it... and all I had to do was edit /etc/default/grub thus: GRUB_CMDLINE_LINUX_DEFAULT="splash vga=789" I ran 'sudo update-grub', 'sudo reboot' and it sticks in a larger-size console mode... just what I wanted.


just start mysql using the command example: sudo /opt/lampp/lampp startmysql and find path of mysql , it will be placed in bin directory of lampp, then login example: /opt/lampp/bin/mysql -u root


That instructions works like a charm to me in my Ubuntu 12.04.1 Change (edit) in /etc/default/grub file: From: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" To: GRUB_CMDLINE_LINUX_DEFAULT="text" Now you must update the grub configs: sudo update-grub And its done! After reboot, to start the gui just login and type: startx


You can use the command sudo dmesg -n 1 to suppress all messages from the kernel (and its drivers) except panic messages from appearing on the console. To fix at each boot, add the command to: /etc/rc.local


From the Linux Information Project: Terminal : Technically , A terminal window, also referred to as a terminal emulator, is a text-only window in a graphical user interface (GUI) that emulates a console. In Our words A GUI Application , from where we can access an user's console. Console: an instrument panel containing the controls for a computer ...


Though a proper library is the best solution, I'd like to show a simple alternative: use \r (carriage return) instead of \n (line feed) for line endings, so that that the cursor is placed at the start of the current line, instead of on the next line. #! /usr/bin/python3 from time import sleep for i in range(100): print('[' + '='*i + ' '*(100-i) + ']', ...


Looks like you accidentally switched to the text console, that does no harm at all as long as you know how to terurn to your desktop. Did you accidentally hit Ctrl+Alt+F4? In that case you can return to your desktop hitting Ctrl+Alt+F7. There are usually 6 text consoles (F1 - F6) but most users aren't even aware of them. They're extremely useful for ...


As you pointed out, you can run nohup nm-applet & to ignore the end signal when closing the terminal. No problem with that.


if you have a touchpad though, highlight the text and press Ctrl + Shift + C to copy ... the following resources describe how to copy/paste using keyboard only -- screen/byobu: How do I integrate Byobu's copy-buffer with the X clipboard? http://www.samsarin.com/blog/2007/03/11/gnu-screen-working-with-the-scrollback-buffer/ Copy and Paste in ...


It's because the Java Console is hidden by default. To change this: First start the Java Control Panel. From the command line run: ControlPanel (if not in PATH, you may have to run something like /usr/lib/jvm/jre1.7.0_51/bin/ControlPanel ) Or, choose from the Dash like the screenshot below In the Java Control Panel go to the Advanced Tab, expand Java ...


Another suggestion: open a new tab on your terminal emulator.

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