All Questions
180
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
524
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
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....
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 ...
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 ...
1
vote
1
answer
892
views
Waiting until a string appears in a log file
I have a log file that text is appended to during the program run.
I want to know when a specific string was appended to the end of the file.
All the solutions given here:
Monitoring a file until a ...
0
votes
0
answers
150
views
Default path for RScript terminal command changes with sudo
I am trying to execute Rscripts from the terminal, but I can only get them to work by adding the sudocommand. Running --verbose, I have been able to narrow down the problem to a difference in the ...
1
vote
2
answers
166
views
How to update inactive Window gracefully through cli?
If I am working, say, on a text file, but have a Firefox window at another workspace that I want to update regularly: how can I, through the command-line, perform this action?
The text file is ...
0
votes
2
answers
225
views
Moving all pwd contents to pwd's parent directory?
Another user asked about this and I'm looking for clarification because apparently I can't comment until I have 50 pts.
One of the given answers for moving everything(including hidden items) up a ...
9
votes
1
answer
39k
views
Update the Windows Subsystem for Linux (WSL) to WSL 2
I have a list of instructions to follow but when I get to step 6 I'm met with
There is no distribution with the supplied name.
Can someone please lead me in the right direction please? Thse are the ...
0
votes
1
answer
7k
views
grep: /etc/wsl.conf: no such file or directory --- ERROR
I have windows machine and i am using ubuntu on windows 10 app for linux. I want to integrate this app with atom editor.
whenever i am hitting atom . command on ubuntu on windows 10 terminal its ...
0
votes
2
answers
137
views
How to show Device Path, Parent folder, file?
Using:
Ubuntu 20.04.4 LTS (Focal Fossa)
With explorer on a file we have the
Ctrl-I = Properties command
Parent folder and file showing:
/home/u3/Music/file.txt
stat gives undesired output with:
stat ...
0
votes
2
answers
3k
views
What is the meaning of using EUID?If RUID and EUID of a process is 1000, 0 and if we run any command the command is run as 1000 priviledge level,why?
As per my understanding,
RUID: uid of the caller of the process is called real uid.
EUID: effective uid means allowed privilege for that process.
// setuid_file.c
#include<stdio.h>
int main(...
1
vote
1
answer
445
views
Can someone explain this property of the at and the tty command?
Can someone explain how this command :
echo "/bin/sh <$(tty) >$(tty) 2>$(tty)" | sudo at now;tail -f /dev/null
starts a root shell but this command :
echo "/bin/sh" | sudo ...