All Questions
Tagged with ubuntu command-line
365
questions
0
votes
1
answer
56
views
Desktop shortcut with a command line argument which contains filename with random numbers
I'm trying to create a desktop shortcut which launches a terminal app with commandline arguments which contains a path to a file with a randomly generated number in the filename.
I've tried everything ...
0
votes
1
answer
513
views
OpenVPN disconnect without killing process
I am using OpenVPN on ubuntu like this sudo openvpn --config vpnconfig.ovpn --daemon
I am wondering is there a way to stop/disconnet OpenVPN connection I started without killing OpenVPN process?
0
votes
1
answer
525
views
How to find cpu spike for the past 2 days?
I was trying to find the linux command to show the cpu spike for the past 2 days.
I was able to get the CPU% with sar command sar -f /var/log/sa/sa$(date +%d -d "2 days ago") but it is not ...
0
votes
1
answer
626
views
Is it normal for Ubuntu (WSL) to take up 40GB of space?
I've tried running this to cleaning out docker images, etc… with this command:
compact vdisk
The filesystem allocation is 1007GB and only 4% is used.
How do I fix this?
All the forums and questions ...
0
votes
0
answers
65
views
How to export a text file from SQLite3 with CLI Kubuntu
Unsure if it is even possible to get a human friendly text file from this SQLite3 file with CLI (Command Line Interface) Terminal with Kubuntu.
using:
neofetch --stdout |grep 'OS:'
OS: Kubuntu 22.04....
0
votes
1
answer
188
views
WSL seems to ignore "default user" argument when updating distro
We are creating a deployment for WSL/Ubuntu 20.04. This works flawlessly for virgin machines.
However, we have a population of machines which have Ubuntu 16.04 which we want to update. We're not in ...
0
votes
0
answers
440
views
Trying to run HLDS (Half-Life Dedicated Server) in the Ubuntu CLI - but I keep getting "Unable to initialize Steam."
I have a headless linux server running Ubuntu that I ssh into. I run a variety of server programs on it, such as a papermc for Minecraft.
I am trying to set up a HLDS server for Half-Life. I've ...
3
votes
1
answer
10k
views
Cannot mount sda3 "mount: /media/drive: unknown filesystem type 'LVM2_member'."
Yesterday I installed ubuntu server on an old laptop to use as home server for Jellyfin and other applications. Everything is going great, until I run the 'df -h' command to check available space on ...
1
vote
1
answer
1k
views
How to use baresip CLI to play an audio file
I'm trying to make my home automation system make announcement calls via SIP so that when an event occurs, the system would call to a specified number, play back an audio file and hang up.
I have ...
1
vote
1
answer
412
views
bash: /etc/shells: Permission denied in Ubuntu
I am trying to add Xonsh to my /etc/shellsto make it my new default shell, however when i run sudo which xonsh >> /etc/shells I get bash: /etc/shells: Permission denied I tried changing the ...
0
votes
0
answers
443
views
Multiple error messages in my CLI when opening a page in Google Chrome in WSL2 (Windows Subsystem for Linux)
I am trying to run Google Chrome on the Windows Subsystem for Linux (WSL2). My Linux distribution is Ubuntu 22.04.1. I downloaded Google Chrome by following Microsoft's tutorial on how to run Linux ...
-2
votes
1
answer
2k
views
How to connect to other computer on same network without ssh?
I am trying to visit each computer on my local network via the command line on an Ubuntu system. I would like to do things like administer files and update configurations. How is this done? Also is ...
0
votes
2
answers
45
views
Move files based on arithmetic conditions on filename
I have a folder with a bunch of files following this structure:
image_<N1>_<N2>.png
where N1 ranges 0:238002, N2 ranges 0:3.
I want to move to another folder only the files that have N1 &...
0
votes
1
answer
674
views
Linux copy all files and folders except for one folder to another folder
I have the following content in a folder
Folder 1
Folder 2
Folder 3
File 1
File 2
File 3
I'm trying to use the command line to move all folders and files except Folder 1, to Folder 1. That is, Folder ...
8
votes
1
answer
15k
views
How to set WSL default path to ~ (Ubuntu)
Running the command ubuntu in Windows Terminal puts the directory as linux default, but running wsl causes it to mount at /mnt/%USERPROFILE%. I know I can just run ubuntu, but I'm used to using wsl ...