Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
17 views

How do i shutdown my pc at a specified time, AND get the option to cancel it if i want?

I have been experimenting with the crontab file and making a .sh script file, but i haven't been able to either: cancel the shutdown or reliably show a message in the terminal as a "warning" ...
John Paasche's user avatar
0 votes
1 answer
21 views

Live USB changed files

I run Ubuntu live USB in Try Me mode. How to get all changed files and settings? Example: I boot live USB. I change light mode to dark mode. How to know what file is changed? I want to make own live ...
tfstwbbnb's user avatar
  • 147
-2 votes
0 answers
37 views

Ubuntu Mate gone crazy [closed]

I am using Ubuntu Mate on my laptop for business since 2018 and it was fine and I was satisfied. Last two days I noticed that buttons of windows (close, max, min) bar has disappeared in all apps ...
Fadi Hamadneh's user avatar
0 votes
0 answers
25 views

Configure share of Internet via command line

The following is what I need, however the OP does not allow zero reputation members to answer (no hard feelings though). Share wireless Internet connection through ethernet My question is: can it get ...
farmakoxeris's user avatar
0 votes
1 answer
29 views

failed to start gnome display manager; run out of space [closed]

so after reboot I run into issue with gdm. After checking similar issue I know that I run out of space in /var/cache/apt/archives and have to probably reinstall shell after clearing some space I ran ...
user1794091's user avatar
2 votes
4 answers
317 views

dir command: force output to one filename per line, full path included, but nothing else

This will probably seem to be a simple question for advanced users, but I have tried with no success. I want to get a file list in the terminal using the dir command, having the following format: only ...
Shakesbeer's user avatar
-3 votes
0 answers
22 views

unable to locate package nuclear [closed]

find the img here I am new to Linux.I have just installed zorin os (Ubuntu). I wanted to install a music player so i tried nuclear music player and installed it in my [zorin] using the following ...
Shiyam Prasanth's user avatar
3 votes
2 answers
975 views

How do I randomize filenames recursively?

I already know how to do it in a given directory: for file in *.png; do mv -- "$file" "$RANDOM-$RANDOM-$RANDOM.png" done How do I turn this into a recursive command?
Nuno Fonseca's user avatar
-1 votes
0 answers
34 views

how to install .tar.xz file [duplicate]

I don't know how to install codeblocks_20.03_amd64_stable.tar.xz How to install latest Code::Blocks from tar.xz?
Massoud yassine's user avatar
-1 votes
1 answer
25 views

I'm trying to install the command tracepath but I get an error "Unable to locate package tracepath"

Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package tracepath I'm using Ubuntu 22.04 LTS.
Akira Celosa's user avatar
-2 votes
0 answers
22 views

Traceback error for adding repositories on Debain Linux 12 [closed]

I'm trying to run this command: sudo add-apt-repository ppa:ernstp/mesarc But it always gives me this error: Traceback (most recent call last): File "/usr/bin/add-apt-repository", line 362,...
Thomas Haddad's user avatar
2 votes
1 answer
27 views

How to get package version in one command line in bash [duplicate]

I'm trying to get the installed version of systemd in the following command, but it returns all lines contain the keyword "systemd". # dpkg -l | grep " systemd " ii gnome-logs ...
stackbiz's user avatar
  • 309
0 votes
1 answer
46 views

"command not found" while running runuser

I want to execute pm2 -s jlist as the user managing the service. I can execute the command if I switch to user's shell, but I cannot do the same as root using runuser -l pm2_user -c 'pm2 -s jlist' ...
palmasd1's user avatar
0 votes
0 answers
42 views

I’ve changed username by sudo usermod now I can’t log in the user account

I was trying to change my username and searching in the internet I’ve found this command: sudo usermod -l new_username -d /home/new_username previous_username To apply the changes to all directories. ...
Selene Melo's user avatar
0 votes
1 answer
48 views

Installed thonny using sudo but can't run from desktop

Ubuntu 22.04.4 LTS kubuntu 22.04 I downloaded the thonny bash script from thonny git. from terminal i typed sudo bash thonny-4.1.4.bash it installed fine. If I run in terminal sudo /root/apps/thonny/...
kadam's user avatar
  • 3
0 votes
1 answer
37 views

The "sudo add-apt-repository ppa:nemh/systemback" command does not work

I'm trying to create a Live ISO of my linux distribution using a tutorial and to do so it tells me to enter this command: sudo add-apt-repository ppa:nemh/systemback problem it returns me this error: ...
Th3_Ph3nix_3.0's user avatar
0 votes
0 answers
32 views

Asus laptop: keyboard and wifi not working

After installing Ubuntu 24.04 on my Asus Vivobook 14 keyboard,wifi and Bluetooth stopped working. I need help.
Amit Pinjari's user avatar
3 votes
1 answer
403 views

Addressing Another Terminal Input Lag with Ubuntu 22.04

Ubuntu 22.04.4 LTS Kernel : Linux 6.5.0-28-generic Gnome version: 42.9 Windowing system: X11 I am experiencing another terminal lag with Ubuntu 22.04. Typing is always 1 character late and I am ...
raisa_'s user avatar
  • 331
-2 votes
0 answers
28 views

Fort77 doesn't input neither output anything

I am new to Linux, but worked also in UNIX few decades ago, recently only in MS Windows, including Fortran with the g77 compiler. I noticed f77 compiler it is not included in Ubuntu, therefore I ...
Filippo's user avatar
0 votes
0 answers
92 views

Ubuntu 24 stuck on a terminal after restart

Ubuntu 24 was stuck in a terminal screen showing some status. I got access to a terminal by hitting ALT+F2. Then I reinstalled ubuntu-desktop and restarted. The GUI appears but old installed apps like ...
Avijit Palit's user avatar
-1 votes
2 answers
58 views

Logitech Craft on bluetooth

A few years ago I found a web page describing how to connect the specific keyboard logitech craft on ubuntu. Today it seems this page is gone. I'm trying to connect via bluetooth. My system sees other ...
Gamood's user avatar
  • 1
2 votes
1 answer
25 views

Ubuntu terminal sudo password not persisting [duplicate]

Is it possible that the same opened terminal (default in ubuntu) will ask for the sudo password from time to time after being provided a password at some point?. E.g.: $ sudo service my_service_name ...
user5480949's user avatar
0 votes
0 answers
25 views

Terminals types, pseudo and regular

I wouls like to know the difference between TTYs and PTYs I cannot see any difference as a complete beginner. Could anyone help?
Souha's user avatar
  • 1
0 votes
1 answer
46 views

Download file in the ubuntu terminal

I have a question. My situation is that I host my website on a ubuntu Server and I have clone my github reposentory to it. I could find my file by using the cd command but now the question, is it ...
TrLIeP1ay3r's user avatar
1 vote
0 answers
30 views

how to extract exact scanimage command from "document scanner" tool

I want to automate my scans that I used to perform with the "document scanner" GUI tool. I am aware of scanimage command (that is most likely used internally), that can be used as such ...
Klops's user avatar
  • 111
3 votes
3 answers
230 views

How do I find out a list of journalctl log size by unit?

One of the services on my system is spamming the log and generating a lot of data. I don't know which service it is. With regular log files, I can use ls -lha to print the size of all the files in the ...
npr_se's user avatar
  • 31
-1 votes
1 answer
52 views

How to execute scripts from a samba drive (cifs mounted)?

If I'm starting a shell script "test.sh" from a samba share, I've got an error: bash: ./test.sh: /bin/sh: Defekter Interpreter: Eingabe-/Ausgabefehler (bash: ./test.sh: /bin/sh: bad ...
dschoni's user avatar
  • 85
0 votes
0 answers
25 views

Unable to open certain programs such as Pensela on Ubuntu 22.04 LTS

I am having trouble opening certain applications such as pensela. They appear on my app list as well as go on my dashboard when I add to favorites but whenever I try to open them (whether by clicking ...
216ann's user avatar
  • 43
9 votes
2 answers
2k views

No output for a "who am i" command

I've been using Ubuntu 24.04 on VirtualBox 7.0.16 on Windows 10 for only 3 days now. I've used several commands on a terminal and they worked fine. But who am i gave no response. But grep [username] /...
Kumara Senadheera's user avatar
0 votes
0 answers
34 views

How to access files on phone from command line Gnome 42.9 Ubuntu 22.04

This gvfs thing is giving me problems, and the gvfs documentation is little help. There doesn't seem to be a way to access my Moto one 5G ace, except at gnome/gvfs/nautilitis I can plug in USB drives ...
HiTechHiTouch's user avatar
3 votes
1 answer
236 views

lscpu vulnerabilities and mitigation

I recently learned about lscpu command and was excited to know the architecture information. However, there is a section at the end where it shows lots of vulnerabilities. Did some google search and ...
learner_account's user avatar
3 votes
1 answer
192 views

Sort files and folders in ascending order of size

How can I use du -h to sort the displayed files and directories in ascending order of size?
D-T's user avatar
  • 1
4 votes
1 answer
310 views

`command echo --help` invokes bash internal echo function

According to help command, the help of bash, command can be used to trigger the external program x, if x exists as a builtin function too: command: command [-pVv] command [arg ...] Execute a ...
user unknown's user avatar
  • 6,786
3 votes
1 answer
32 views

Condense multiple similar alias

I have been working on creating new alias to use at work and noticed my .csh file filling with similar alias that go to different sub-directories but everything else is the same. I am newer at ...
Michael's user avatar
  • 31
1 vote
0 answers
54 views

Installing Ubuntu on an x86 Android tablet (Lenovo Yoga tablet 2)

Yes, as the title suggests, TWRP is in Teamwin recovery project. I dug out my old x86 tablet (a Lenovo Yoga Tablet 2) the other day and wondered if Ubuntu could be installed on it. It has 16GB of SSD ...
Nick P's user avatar
  • 19
0 votes
1 answer
32 views

Can't login at terminal after purge and auto remove

I was using Ubuntu 22.04.4, I installed an app/program that didn't work but wouldn't uninstall. I ran a purge and auto remove command and when the computer rebooted, I knew I borked it! I get a ...
yeochief2002's user avatar
9 votes
4 answers
3k views

Given MAC address, how to tell if interface is wifi

Is there a way, on the command line, given a MAC address of a local network interface on the current machine (e.g. 01:23:45:67:89:ab), to determine if that interface is WiFi vs wired? I'm trying to do ...
Jason C's user avatar
  • 818
0 votes
1 answer
92 views

How to safely extend Logical Volume in production server

I have 4 LVs, type is ext4. I want to know how to safely extend them since they are all used for production. From what I know the steps are. unmount extend resize FS mount again Are these steps ...
TrealFaisal's user avatar
0 votes
0 answers
47 views

Bash script not launching correctly

Right now I am working on a project for which there is a custom conda environment. I created the environment and the project works, so I created a bash script to activate the conda environment, launch ...
Samuel Kostadinov's user avatar
1 vote
0 answers
80 views

error 2147942402 (0x80070002) when launching `ubuntu2404.exe' error while launching ubuntu in terminal windows

recently I downloaded Ubuntu- 24.04 LTS in my windows pc through terminal wsl --install -d Ubuntu-24.04 it downloaded successfully and then it launched with an error error 2147942402 (0x80070002) when ...
yudhishithira's user avatar
0 votes
0 answers
55 views

Vim does not work properly

I just installed vim on my ubuntu. When I open a text file in terminal with Vim by vim <fileName>.txt, the data inside text file shows up. Here is the problem. When I try to move the cursor ...
Tran Hung Anh's user avatar
-1 votes
2 answers
89 views

I in linux system I geting many same exported path variable

In my ubuntu system I getting same env variable many times This is the output of echo $PATH | tr ':' '\n' | less command in zsh shell /opt/some/bin <<< /Users/pritam/Developer/system_script /...
Pritam's user avatar
  • 1
3 votes
1 answer
125 views

color variable does not work with PS1 assignment in bashrc file

below is my current PS string in .bashrc PS1='${debian_chroot:+($debian_chroot)}\[\033[00;37m\]\u@\h\[\033[01;32m\]:\[\033[01;34m\]\w\[\033[01;31m\] $(parse_git_branch)\[\033[00m\]\$ which works fine ...
xkeshav's user avatar
  • 627
-2 votes
0 answers
210 views

Ubuntu 24 upgrade date [duplicate]

Someone know, When will it be possible to update Ubuntu 23 to Ubuntu 24 via terminal?: sudo do-release-upgrade
Daniel's user avatar
  • 1
0 votes
1 answer
98 views

Problem with booting on new HP 14-ep053sa

I'm trying to install the new Ubuntu 24.04 to my new laptop, a HP 14-ep0523sa Pavilion. Unfortunately, after installation, it boots straight to a command-line interface, but not the usual one, just ...
ben's user avatar
  • 1
0 votes
0 answers
29 views

sudo su gets hung in Ubuntu 20.04

When trying to run the sudo su command it gets hung. If I press Ctrl zz then after 2 minutes it goes to sudo. When I checked the permissions, it is OK and there is no output from it.
Hiral Tanna's user avatar
0 votes
0 answers
32 views

Ubuntu Server 22.04 installation from command line

I'd like to create a ubuntu server 22.04 with the root and boot on an ssd raid 1 without encryption and a raid 6 with 10 drives with luks encryption. How can i do this from a command prompt? Thanks in ...
hank744's user avatar
0 votes
1 answer
68 views

Redirect Std-output to a file and Err-output another file simultaneously

I want to get the std output and err out to be written in both files simultaneously by one command echo $((1/0)) $((1+2)) > out.txt 2> err.txt it print only the output to the shell not event to ...
Ahmed's user avatar
  • 1
1 vote
2 answers
117 views

Concatenate string after grabbing environment variable

I'm trying to concatenate a string with a variable which is in .env file. My .env is this: API_URL=http://localhost:3030 NODE_ENV=development And here is my code: [ ! -f .env ] || export $(grep -v '^#...
sundowatch's user avatar
0 votes
0 answers
29 views

When a foreground process is running and ssh connection is terminated,In default behavior The foreground Process receives SIGHUP,but mine kept running

In Ubuntu 22.04, foreground processes may not receive the SIGHUP signal when the terminal is closed, especially if they are backgrounded or detached. This behavior differs from expectations, where ...
Ansh Gautam's user avatar

1
2 3 4 5
452