Questions tagged [command-line]
Questions about using the command-line interface (CLI).
21,331
questions
0
votes
0
answers
22
views
How creating new $PATH works?
I am trying to add a path of a program/file into $PATH, but I don't understand the guidelines and finally, it doesn't work either. E.g. following this guideline:
if export PATH=$PATH:[path/to/program]...
1
vote
2
answers
30
views
How to find all images with a certain pixel size using command line and move them to new folder
I am trying to find all photos that are not equal to a 256 pixels in height and length and move them to a new folder. So far I was able to write up the following code in the terminal that outputs in ...
0
votes
0
answers
28
views
How do I run the Ubuntu startup command with commands to run within Ubuntu on the same line?
I can run ./start-ubuntu.sh in my (Android emulator) terminal and then run my commands cd code-server-4.5.2-linux-arm64 && cd bin && export PASSWORD="pass" && ./code-...
0
votes
1
answer
26
views
Divergent RAM consumption, which program to trust? | htop | free -m | top | glances | CPU-X
I'm studying about processes and RAM consumption and I noticed differences in the RAM memory consumption information when using different programs. I'm using Kubuntu 22.04.1 LTS (Jammy) fully updated ...
0
votes
0
answers
24
views
script for heap utilization on ColdFusion server
I have a command which return the output for heap size utilization:-
jcmd `jps -l | grep com.adobe.coldfusion.bootstrap.Bootstrap | cut
-f1 -d ' '` GC.heap_info
it gives output like this
16144:
...
0
votes
1
answer
26
views
How can I remove dns server command line on Ubuntu 20.04 Desktop?
OK. I install a Server with Ubuntu 20.04. I set the Network with IP:192.168.200.15 Netmask: 255.255.255.0 Gateway: 192.168.200.1 and DNS: 192.168.200.1. Now I need to change DNS: to 192.168.200.50. ...
0
votes
0
answers
19
views
Custom Command to toggle WiFi On & Off? [duplicate]
Brand new Linux user :3
(As the title implies)I want to create a a custom command to turn wifi on and off with the same keyboard shortcut...
I found a really useful answer with 2 different commands ...
0
votes
1
answer
68
views
how open firefox on Ubuntu through the command line (Terminal)
I am trying to start firefox from terminal using this command sudo /usr/bin/firefox. The problem is that it won't open firefox returning me this error:
mkdir: cannot create directory '/run/user/0': ...
0
votes
2
answers
29
views
grep fails to find text in docx file
I cannot find the reason why grep cannot find the file with the word 'coomunities'. I used
grep -ril --include=GLOB "coomunities" .
Note: communities is on purpose mispelled.
The file is a ...
-5
votes
0
answers
27
views
i only have option hdmi audio built in [closed]
sudo apt purge timidity-daemon
[sudo] password for mehmet:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically ...
0
votes
0
answers
22
views
Fixing increased line height/padding in terminal
I upgraded to Ubuntu 22.04 from Ubuntu 20.04. I noticed in the terminal that it is now taller because there seems to be more padding within the character cells, or some slight rendering difference in ...
0
votes
0
answers
26
views
Am trying to set sambashare path to whole computer
I just switched from Macos to Ubuntu and am trying to connect my devices with smb over lan. The connection works but only the "sambashare" folder is being shared.
path = /home/username/...
0
votes
0
answers
7
views
The cursor mouse freezing and appears the second cursor on the display after logged Into Ubuntu
The cursor mouse freezing and appears the second cursor on the screen one is moving and able to execute some basic mouse features another one is fixed the place where I left the mouse last time, ...
6
votes
3
answers
545
views
How to grep only certain word in 1 line?
I am checking the password complexity of ocredit in /etc/pam.d/password-auth which is this line :
password requisite pam_pwquality.so try_first_pass retry=3 minlen=8 lcredit=-1 ucredit=-1 dcredit=-1 ...
0
votes
0
answers
15
views
Application commands not working after closing and re-opening ubuntu
I am running ubuntu 20.04.4 and I have been trying to learn to do some basic web development. As a result, I have tried to install some applications, such as 'npm' and browser-sync. I already have '...
0
votes
0
answers
11
views
background on screen and terminal "window" in wrong place
I use Ubuntu 20.04 on a Linux x86_64 system. Two questions.
Recently the background on my screen started showing a lot of little white boxes with names of many files in my home directory. This is ...
2
votes
1
answer
571
views
Home folder contents lost: wrong use of rm?
I am using Ubuntu-Mate 20.04 and I have lost most of the contents of my home folder. I think it could be due to using wrongly the “rm” command with sudo, but not sure if it might be something else.
I ...
0
votes
1
answer
35
views
Can anyone help install abuntu onsamsung chromebook 3 xe303c12 having update issues. Wont let me finish crout setup
I have a samsung chromebook 3 xe303c12 model I've already turned to developer mode on and installed a fresh crouton installer, when I tried installing thru alt-control-T command page = I used Shell to ...
0
votes
0
answers
34
views
Ubuntu 20.04 will not upgrade to 22.04
I received the prompt to upgrade my Dell Vostro 1720 Laptop from 20.04 to 22.04 but nothing happens when I choose "Yes" to upgrade. I've tried using the terminal to upgrade by running this ...
0
votes
0
answers
31
views
Haswell Vulkan support is incomplete
I'm trying to install a .exe file on Ubuntu 20.04, and whenever I attempt to install it with wine, I enter
wine (Somefile).exe
and I get
00c0:fixme:heap:RtlSetHeapInformation 00000000 1 00000000 0 ...
-2
votes
0
answers
31
views
How can I retreive specific line numbers along with their file names and paths [closed]
I am looking to print specific lines from multiple files in the directory along with the filenames and paths. I can use sed -n '23,39p' or awk 'NR>=23&&NR<=39' (suppose I want to print ...
0
votes
2
answers
35
views
What is the command or script to add a part of folder name of that folder's filename?
Suppose I have folder structure like below
01. folder1
|- 1. video1
|- 2. video2
|- 3. video3
02. folder2
|- 1. photo1
|- 2. photo2
03. folder3
|- 1. doc1
|- 2. doc2
Now I want to ...
0
votes
1
answer
18
views
When I switch my laptop it is opening as terminal
I am using Ubuntu 20.04.4. I had uninstalled python3 but after sometime it getting stuck so I restarted it via power off button. But now it is opening as terminal. enter image description here
0
votes
0
answers
26
views
Winetricks 32-bit wineprefix
I am attmempting to install visual studio using wine, and I am using Winetricks to install it. When I open Winetricks, I get a warning that says, "You are using a 64-bit WINEPREFIX. Note that ...
0
votes
2
answers
28
views
Trouble understanding how to run commands automatically at systemstartup
Ive been reading most top results about how to run@startup scripts on linux.
I have been running a homeserver for videogames and i would like to create something myself.
Not sure what it is called. ...
-1
votes
1
answer
39
views
Why `group` does not show new group in GUI bash terminal, when showed in text mode console?
Why after I login in I see user account belonging to newly added group, but in X (GUI desktop after starting with startx) in terminal groups does not show that group?
Clear reperformance example: ...
0
votes
0
answers
24
views
moving file with specified user input or set default value for source, destination and file format if input is blank [closed]
write a shell script to transfer file from one directory to another directory with specified file format, create new directory if destination directory not available, by getting input from user about ...
-4
votes
0
answers
44
views
How can I decode this executable binary file? [closed]
I found a executable binary file from the internet. I guess this is bash script, I'm suspicious about this bash script restores my IP Address etc. How can I decode this?
"I Think" It has ...
1
vote
0
answers
42
views
Clear the terminal without stopping the program [duplicate]
Is it possible to clear a terminal but without having to stop the current running program
0
votes
0
answers
12
views
unable to upgrade from disco to focal [duplicate]
I have tried updating outdated ubuntu software from disco to focal but I always receive this response 'an upgrade from 'disco' to 'focal' is not supported with this tool'. I mistakenly deleted the ...
-3
votes
1
answer
46
views
How do I install Chrome? [duplicate]
How can I download Chrome? I have tried downloading it using Mozilla unsuccessfully.
I don't know if I can't download it because I was a Windows user before.
1
vote
0
answers
33
views
"No such file or directory" goes away when using tab autocomplete. Comes back when re-doing previous command
Example:
$ ls -lahF '/mnt/test/test directory 001/'
total 1.0G
drwxr-xr-x 2 myuser root 0 Aug 10 01:00 ./
drwxr-xr-x 2 myuser root 0 Aug 10 13:53 ../
-rwxr-xr-x 1 myuser root 1.0G Aug 10 14:00 ...
0
votes
0
answers
14
views
Reboot stucked with perf: interrupt took too long (3141 > 3135), lowering kernel.perf_event_max_sample_rate to 63500
I need help to this problem, I ave never came across this before, rebooting my PC stucked with a screen containing the subject text,
perf: interrupt took too long (3141 > 3135), lowering kernel....
0
votes
0
answers
12
views
when i install WRF-ARW i got an error with building libraries
configure: error: The Fortran compiler gfortran will not compile files that call
the same routine with arguments of different types.
0
votes
0
answers
19
views
Windows 10 Ubuntu WSL freezes randomly when doing certain actions
This has been happening quite a bit every time I do certain actions on a server such as listing all files ls -la and bash simply freezes and my only alternative is to start a new shell.
I looked at ...
0
votes
1
answer
32
views
Syntax errors ubuntu 22.04
every time i update my system using the sudo apt update command in the terminal i notice this at the bottom.
sh: 1: Syntax error: "(" unexpected
sh: 1: Syntax error: "(" ...
2
votes
1
answer
65
views
Script gets stopped when running in background
I'm running Ubuntu 20.04 terminal-only.
I'm currently trying to run a python script in the background so I can continue using the terminal. However, after running the script and I try do something, ...
0
votes
3
answers
41
views
Why can't I type commands in terminal while an application is running? [duplicate]
I'm new to Ubuntu and I've been experimenting with commands in the terminal. I opened chrome by typing "google-chrome" and a bunch of code appeared in the terminal. I then tried to type more ...
0
votes
0
answers
10
views
Run python script and continue using command line [duplicate]
Is it possible to run a python script and then be able to continue using the command line? Like have the python script just run in the background? I've been trying to find an answer to this question ...
0
votes
0
answers
49
views
How does one enable WSL Interoperability on Ubuntu 22.04?
I've seen related questions, but none offer the answer to my question. I ask because, whenever I invoke xdg-open from the command line, I get the following error instructing me to enable WSL ...
0
votes
1
answer
40
views
How can I fix this Wine/Terminal error on Ubuntu 22.04
Hi I just updated to Ubuntu 22.04 and I was trying to install wine but I keep on facing the error :E Unable to locate Winehq-stable. If I try the development branch it works but when I try to install ...
0
votes
0
answers
23
views
Ubuntu Logging loop, startx works for root not other user
Debian Ubuntu Linux 20.04
My computer shutdown during the night the very next day it prompted me to run manual fsck which i did, after running it and logging in i noticed that my internet browser(...
0
votes
2
answers
61
views
Pending update of snap store (2)
Pending Update of Snap Store ... still. The answers on Pending Update of Snap Store aren't working for me (or maybe I'm just not understanding them correctly).
Tried several of the ideas posted but ...
0
votes
1
answer
20
views
How can I change a Ubuntu Desktop installation, to a shell login (with startX when I want to go graphical)?
I have a working Ubuntu Desktop 20.04 installation, but there are some things I need to do as root and I need to do them before the X session starts. I needed the help of the Desktop install, to get ...
0
votes
1
answer
37
views
Script to execute a command for all files with ending .mp4 in a folder
I'd like to execute the following command:
ffmpeg -i video_file_input.mp4 video_file_output_2.mp4
Thanks for your hints!
0
votes
1
answer
27
views
how to show perl printf with decimal as a variable
#!/usr/bin/env bash
n=3
awk "BEGIN {printf \"%.\"$n\"f\", (2*2.22222222)}"
result: 4.444
but:
perl -e "printf \"%.3f\", (2*2.22222222)"
how ...
0
votes
0
answers
32
views
"mkdir: cannot create directory ‘/vinay’: Permission denied" when i launch terminal
As fas as I understand I have tried to create a directory called vinay in root(/) while I was holding permissions only for my profile (/home/vinay) and I ran into this error a while ago. I switched ...
0
votes
0
answers
17
views
Commands Are not Taking effect after reboot
I Killed my camera driver using
sudo rmmod -f uvcvideo
after reboot the command is not taking any effect and the camera is working well
i need to stay the camera being killed untill i turn on it ...
0
votes
0
answers
17
views
Trying to figure out how to use < in a command [duplicate]
I've been learning docker which has led me to create a container with ubuntu. I am also kinda new to linux commands in general and was trying to get a better understanding of redirection.
I used > ...
0
votes
2
answers
35
views
how to reference different physical drive on linux command line
in Windows, if you have 2 physical drives using C: and D: and you're at
C:\
you can enter:
C:\ dir d:\folder1
to get the directory listing on the other drive. Is there an ubuntu/linux equivalent ...