Latest Ubuntu related questions

Score: 0
Lee White avatar
Bash script for moving files based on user input
vn flag

I'm new to Bash and coding in general and not gonna lie I need help for a homework task in which a script needs to be made that asks the user for a file name, and then moves it to a designated location.

I assume the script for actually moving the file would be

#!/bin/bash
mv /path/to/source /path/to/destination

But how do I implement this when asking the user to enter the file name the wish the move, and ...

Score: 2
Fré avatar
Lock Keys extension in Ubuntu 20-04
cn flag

I have installed

  1. Gnome-shell-integration in Firefox and
  2. chrome-gnome-shell --in Ubuntu 20-04

in order to install from Gnome Extensions the extension Lock Keys. I know that I should be shown a picture of it showing a switch that I simply have to put 'on', but I always get a picture with 'download' and 'shell version' instead. I have pictures of both situations, but have trouble sending them alon ...

Score: 0
Manuel Dominguez avatar
I can't find my alias file
cw flag

Some time ago I created an alias which is still working

(base) Mac-mini ~ % type Iridis

Iridis is an alias for ssh ...

I want to modify this alias but when I go to nano ~/.bashrc the file is empty. Perhaps I saved it in another file? How can I find it?

Score: 1
Kohjah Breese avatar
Desktop Won't Refresh, Files on The Desktop Don't Open Correctly
br flag

I've had the following issues since installing 20.04.

If I download (via browser) files to the desktop or any folder on the desktop, about half of the time they never appear. Either on the desktop or in the file manager.

If I open images files on the desktop in GIMP, after about 30 seconds GIMP will crash/close.

The icons I can see on the desktop don't always correspond to the ones I can see in the fil ...

Score: 0
Squirells avatar
recently instld ubuntu on laptop having both ssd(240gb) and hdd(1tb)hdd has windows. But whenever I open ubuntu, the drive name changes automatically
in flag

The hdd on which windows is installed has 4 partitions in total and I can access in ubuntu as well. However when I log on in ubuntu the partition names appear changed in its file explorer. Edit: I think I wasn't able to put it clearly.... See, whenever I boot into ubuntu, a particular drive name changes everytime in Ubuntu's file explorer say if it was A in previous boot, it'll be B this time and C next ...

Score: 0
AMD navi and polaris GPUs coexistence - OpenCL platforms
cn flag

I'm running a rig with mixed AMD Polaris and Navi GPUs in the following hardware:

PRIME Z390-P motherboard intel i3 8100 CPU 8 GB RAM Ubuntu 20.04.2 kernel 5.11.0-44-generic

Ubuntu detects all the cards:

sudo lshw -C video
  *-display
       description: VGA compatible controller
       product: Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
     ...
Score: 0
James Anderson avatar
Firewall settings for remote (VPN) subnet?
gd flag

I have two servers running 18.04.6 desktop. I am unable to access them from a different subnet (IPsec site to VPN). It appears to me that the built-in firewall doesn’t allow connections from an address outside the range of it’s subnet. I can access Windows PCs and a QNAP NAS so I think the default firewall settings in the Ubuntu servers are the problem. Note: both servers have multiple VLAN interfac ...

Score: 0
María José avatar
command to keep only the name of a file
in flag

is there any command in linux to keep only the name of a file without its extension I am creating a backup of txt files, when I generate the files with a script the extension is .txt.bkp and I only want the extension .bkp

file=$1
cat $file > $file.fasta 
Score: 0
daerragh avatar
Ubuntu 21.10 - occasional problem with booting, slow boot
cn flag

I've got a fresh install of 21.10. Sometimes when I start my PC, after Ubuntu logo and "the loading circle" spinning, the screens goes black for a minute and afterwards Ubuntu starts but doesn't run well, for instance I can't launch Chromium.

LOG: https://pastebin.com/W4mkqtJy

SPECS: Athlon Silver 3050e with Radeon Vega 3 (integrated), 4GB DDR4, eMMC 64GB.

I know that it looks like the GPU was br ...

Score: 1
user2490003 avatar
xdotool `windowsize` and `windowmove` don't work in GNOME when the window is full sized
tr flag

I have some keyboard shortcuts that tile windows around the screen. Under the surface, they just execute various xdotool commands.

For example, here is one that moves the current window to the left half of the screen:

xdotool getactivewindow windowsize 50% 100% && xdotool getwindowfocus windowmove 0 0

This works great most of the time, but I noticed that it doesn't work when a particular windo ...

Score: 0
ipcamit avatar
Screen brightness not changing in Thinkpad T14 Gen 2 AMD
cn flag

I purchased Thinkpad T14 Gen2 (AMD Ryzen Pro 5850), I have installed Ubuntu 20.04 with kernel 5.11.0 (as provided by ubuntu).

My screen is constantly at full brightness and the neither F5/F6 nor other system controls (like writing directly to /sys/class/backlight/amdgpu_bl0/brightness) seem to have any effect.

I have already tried removing thinkpad_acpi (modprobe -r thinkpad_acpi) and booting with ke ...

The Stunning Power of Questions

Much of an executive’s workday is spent asking others for information—requesting status updates from a team leader, for example, or questioning a counterpart in a tense negotiation. Yet unlike professionals such as litigators, journalists, and doctors, who are taught how to ask questions as an essential part of their training, few executives think of questioning as a skill that can be honed—or consider how their own answers to questions could make conversations more productive.

That’s a missed opportunity. Questioning is a uniquely powerful tool for unlocking value in organizations: It spurs learning and the exchange of ideas, it fuels innovation and performance improvement, it builds rapport and trust among team members. And it can mitigate business risk by uncovering unforeseen pitfalls and hazards.

For some people, questioning comes easily. Their natural inquisitiveness, emotional intelligence, and ability to read people put the ideal question on the tip of their tongue. But most of us don’t ask enough questions, nor do we pose our inquiries in an optimal way.

The good news is that by asking questions, we naturally improve our emotional intelligence, which in turn makes us better questioners—a virtuous cycle. In this article, we draw on insights from behavioral science research to explore how the way we frame questions and choose to answer our counterparts can influence the outcome of conversations. We offer guidance for choosing the best type, tone, sequence, and framing of questions and for deciding what and how much information to share to reap the most benefit from our interactions, not just for ourselves but for our organizations.