Output can be redirected to a text file with >
followed by the destination text file. How can we redirect the output to another terminal window or tab?
>
or 1>
redirects standard output, 2>
redirects error messages.
Output can be redirected to a text file with >
followed by the destination text file. How can we redirect the output to another terminal window or tab?
>
or 1>
redirects standard output, 2>
redirects error messages.
The valuable keyboard automation tool xdotool
does not work on Wayland. A new tool that mimicks some of the functionality of xdotool, but that works both in Xorg and Wayland, is ydotool.
ydotool
is available in the Ubuntu software center as version 0.1.8-3. It the mean time, the tool has been "refactored" in the sense that it has been completely rewritten, has no external dependencies and uses a lot less memory and without dynamic memory allocation. It is at version 1.0.1 as of June 2022.
Only source code is provided on github, without instructions on how to build the code and install the tool. How can we install ydotool 1.0.1. on Ubuntu?
The minus character − is unicode 2212 and can be entered as Ctrl+Shift+U 2212Enter.
Is there a combination to enter that character with the Compose key? It is also not readily available in the US international keyboard layout, afaik.
I know Compose --. allows to enter the very similar en-dash. en-dash and minus, however, are not the same (–−):
1 + 2 = 3 ; 3 − 2 = 1; 3 – 2 = 1
From the terminal, we can open Files (nautilus) in a specific folder providing the pathname at the terminal, e.g.
nautilus /home/user/Documents
would open a new window in the Documents folder. However, this always opens a new natuilus window, whether or not the -w
(--new-window
) option is specified on the command line.
Question: Is there a possibility to change the directory within a running window of nautilus to a new folder using a terminal command, perhaps via dbus
?
Firefox 84 (and earlier ...and later...): When copying from Firefox to the terminal, we tend to mistakenly use Shift+Ctrl+c to copy text (since that is how it is done in the terminal emulator. In Firefox, this very disruptivaly opens a developer console, which is not easily closed (i.e., you can't press the same key to close it). How can we disable that keybinding? I would not mind disabling the developer tools in their entirety if that is what solved this usability issue.
Users can be confronted with the need to change ownership of a drive. One obviously can use the terminal, but is there currently a supported way to change ownership using a graphical tool in Ubuntu with Gnome Shell?
I regularly see questions of users on how to do that (e.g. after reformatting their drive to the ext4 file system), and I hate to have to recommend them to use sudo -H nautilus
. 1) It is not a proper way to run graphical applications as root ; 2) modern trends are never to run the graphical applications as such as root (for example, "Disks" application).
We used to be able to run gksudo nautilus
, which allowed to run nautilus as root without the risk of breaking user configuration. We do not have gksudo
anymore. Instead, there is pkexec
, but Ubuntu does not come with a policy file in place. So this option is not out of the box available to users.
The officially supported way to perform root actions with graphical tools such as nautilus
and gedit
is to use the "admin://" URI. With the command
nautilus admin://
one can open nautilus and perform actions that require root permissions. As such, one can change permissions of files from a different owner. However, the properties dialog does not allow to change the user of a file or directory.
Hence the question: "is there currently a supported way to change ownership using a graphical tool in Ubuntu with Gnome Shell?".
I typically work full screen. However, sometimes I have windows next to each other. That is because I want to see the contents of different windows at the same time. Yet, most GTK3 themes slightly dim content of a non selected window. Is there an easy way to prevent a GTK3 theme from changing the appearance of window content when a window is not selected?
Changing the appearance of title bar or window borders between unselected and selected windows is desirable. What I find undesirable is a change in appearance of the window content.
In particular for me, it concerns the Greybird theme that comes with Xubuntu 19.10 (with the standard window manger of Xubuntu). This, however, also happens with for example Adwaita or Arc, and also happens under Gnome Shell. It apparently is a feature of GTK3 themes. I do not see this happening with mousepad (GTK2) or PCmanFM (GTK2).
For nautilus, there is what can be called a bug, where the background becomes gray for the not selected window if tabs are open, but stays white for the non selected window if no tabs are open:
On top a not selected nautilus window with multiple tabs, middle a nautilus window without tabs, bottom selected nautilus window without tabs.
The difference is more subtile in a GTK3 text editor such as Gedit:
Left: not selected window, right: selected window.
Quite hidden in Evince, the accepted answer on this AskUbuntu question clarifies that one can pan in a document (i.e. drag a zoomed document around to change the viewed area) with the right-click mouse button. Being on the road with a laptop, one may not have a mouse available. I am aware one can still pan using the scroll bars, but that makes for a difficult, awkward and counter-intuitive experience. Is there a possibility somehow to pan the viewing area with the touch pad by clicking and dragging as one currently can after clicking the middle mouse button?
This is an essential feature in some scenarios. Looking around in for example a zoomed in architectural plan or a drawing in PDF format is extremely awkward if scrollbars are to be used.
I am looking to set up a hotkey to launch in particular Terminal or Files such that the hotkey either launches or raises them in the same way as would happen if you clicked the icon in the Gnome Activities overview, or switched using Alt+Tab. This means:
Currently, assigning a hotkey in Settings > Keyboard will always launch a new instance of Terminal or Files. I am aware of (and have tried) scripts involving wmctrl
or xdotool
but this may only cut this partially: it will raise one window only, and the raised window will always be the first one that was opened, not the most recently used, unless, of course, a more sophisticated script is developed. In addition, these may not work well on Wayland.
Preferably, I am looking for a command that would directly interact with Gnome Shell and have the same effect as clicking the icon in the Application overview or dash.