Questions tagged [command-line]
This tag is for questions that are about using the command-line interface (CLI), including the use of standard command-line tools and shell commands. However, for questions that are specific to each shell (like Bash, ZSH etc.), use the tag of that particular shell as well.
23,201 questions
1
vote
2
answers
512
views
How to run a command in a terminal only if the previous commands succeed?
I want to open a terminal and automatically open a folder and run a command within it
For this, I have the following:
:~$ gnome-terminal --working-directory=/home/project -- code .
This runs code . (...
0
votes
0
answers
57
views
How to execute/run programmes in Terminal [closed]
I am moving to Ubuntu from windows after microsoft changed my system from windows 10 to 11 without my knowledge or permission.
I am not 'tech-savvy' so please be gentle with me! I would usually use a ...
0
votes
0
answers
29
views
Hyprland: $HYPRLAND_INSTANCE_SIGNATURE is always empty — IPC broken even with exec-once or custom scripts [closed]
I’m having a persistent issue on Arch Linux with Hyprland where
$HYPRLAND_INSTANCE_SIGNATURE is always empty.
Because of this:
hyprctl commands fail with:
HYPRLAND_INSTANCE_SIGNATURE not set! (is ...
2
votes
2
answers
189
views
Match a list of patterns to be excluded and remove the pattern and the following line
I have a fasta file with a bunch of sequences that look like this:
>chr_U_5_U_166_U_4:0-19392367:6458748-6462772_0.0
...
-1
votes
1
answer
70
views
Upgrade to latest Ubuntu Now have an "Notice" of Ignoring a file
How do I resolve this issue:
Notice: Ignoring file 'mono-official-stable.list.migrate' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
Happens whenever I use the ...
1
vote
0
answers
55
views
RAR can't open hidden directories
I'm trying to backup my entire home directory to an external drive with rar, but seems to fail with "hidden" directories (starting with .):
$ rar a -r -v512M /media/user/BACKUP/home.rar ~/
...
0
votes
0
answers
41
views
Why my terminal shows these commands every time i open it?
I have downloaded Xilinx ise 14.7 for my Ubuntu os and now everytime i open my terminal these commands appear
. /opt/Xilinx/14.7/ISE_DS/common/.settings64.sh /opt/Xilinx/14.7/ISE_DS/common
. /opt/...
5
votes
4
answers
513
views
Insert prefix to each line of file if line is not blank otherwise do something else
I would like sed do something to each line of a file.
if line is NOT blank, do something, (insert prefix_01 before line text),
if line is blank, (including spaces, tabs or whatever not printable), ...
0
votes
0
answers
26
views
Newish to kubuntu, suggestions on resources to study [duplicate]
Relatively new to ubuntu, currently using Kubuntu. I used to do linux back during Knoppix times, but ended up back on windows... I am interested in speeding into more advanced terminal commands and ...
1
vote
0
answers
73
views
How to find the newform command
I'm trying to find the newform command in WSL. What am I doing wrong? Thanks! I'm trying to convert a binary file to ASCII.
0
votes
0
answers
26
views
during login time btoal black screen issue
I need help with a serious Linux issue on my laptop. I am using Dell G15 with Ubuntu (22.04/24.04) installed. After installing NVIDIA drivers, my laptop shows a black screen after boot. I followed ...
0
votes
1
answer
110
views
The terminal doesn't load up quickly after a fresh system start
For quite some time now, when I start my system, I start the terminal with the universal shortcut ctrl + alt + t. But having noticed a few times now, it doesn't start as quickly as it might be ...
13
votes
2
answers
8k
views
The NEW `du` command (in `/lib/cargo/bin/coreutils`) outputs wrong sizes in Ubuntu 25.10
Please, only people that have used the "uutils coreutils" version of the du command should comment.
Compare the following outputs of the commands ran on an Ubuntu 25.10 system:
# du -smc /...
3
votes
1
answer
80
views
locale problem in 25.10
After update from Ubuntu 25.04 to 25.10, there is something wrong with locales and / or the date command:
Normally date should output (as in 25.04):
$ LC_TIME=en_GB.UTF-8 date
Fri 7 Nov 19:29:29 +03 ...
0
votes
0
answers
27
views
Ubuntu 20.04 Terminal in Virtual Machine not connected to the internet
I have downloaded Ubuntu Deskop 20.04 LTS onto my virtual box. The problem here is the rest of the applications such as firefox and chrome are working, and have access to the internet but the terminal ...