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
0 answers
19 views

Command-line utility to find and prompt to delete duplicate images (including resized ones) similar to fdupes? [duplicate]

I am looking for a command-line utility to find duplicate images (including resized ones) and prompt me to choose which one to delete. My cloud backup process seems to generate photo duplicates, some ...
Timotheos's user avatar
  • 121
0 votes
1 answer
23 views

How to check my Ubuntu version on windows?

How to check my ubuntu version on windows . what command should i use?
Ranjith 's user avatar
4 votes
2 answers
218 views

Modify text file with command

How can I modify a text file to do the following in 1 command? I have a text file called Errors.txt with the following 3 lines: Error in File /Test1/A.png Error in File /Test2/B.jpg Error in File /...
Kryptonyx's user avatar
1 vote
1 answer
452 views

trying to go to terminal and run a command

I got this when I opened the terminal: Welcome to fish, the friendly interactive shell Type help for instructions on how to use fish leah@leah-pc ~> ... and I then tried to run a command: leah@...
Leah Bolton's user avatar
2 votes
2 answers
208 views

Can't I scroll in the terminal up? Terminal shows only 24 rows? The scrollbar on the right fills the entire vertical height of the window?

Based on: Terminal output scrolling is gone (Headless 11.10 Server, Upgraded from 10.10) and https://superuser.com/questions/1331658/why-cant-i-scroll-in-the-terminal and my own dire situation right ...
michal roesler's user avatar
2 votes
1 answer
218 views

How to change permissions (chmod)?

I have created a folder not in /home but on other volume which is free (eventually I'd like to share the folder via Samba). I have found the path: /media/xduser/kingstone I did: cd /media/xduser/...
ZedZip's user avatar
  • 199
0 votes
0 answers
34 views

Grub-installl command doesn't work inside chroot

While restoring grub after installing windows, after mounting everything(bin, proc, run, dev, dev, dev/pts), and after chroot /mnt/ command, I don't have Grub-installl command, Any suggestions?
Matin Mat8's user avatar
5 votes
2 answers
101 views

Find duplicate case insensitive filenames in all folders and sub-folders

I have about 250,000 files in several folders with sub-folders. Looking for a solution how to find duplicate filenames in all folders and their sub-folders. My OS is Ubuntu 22.04, using bash. I prefer ...
sotirov's user avatar
  • 2,795
0 votes
1 answer
89 views

How to return Ubuntu to GUI mode after accidentally deleting network-manager?

My laptop recently couldn't enter GUI mode and could only enter CLI mode. I've looked for a solution on the internet but most people suggest doing: sudo apt-get --reinstall ubuntu-desktop ...
Dzaki Sultan Rabbani's user avatar
0 votes
0 answers
36 views

E: unable to locate package spotify

I have installed Ubuntu 22.04.3 LTS alongside with my windows 11 on my laptop and its working pretty nice. I don't face any issue while installing/downloading packages/application through the terminal....
Krypto's user avatar
  • 1
1 vote
1 answer
42 views

Dolphin context menu exec command, cp will duplicate selected folder if already copied

So I'm trying to automate some tasks and I'm making some dolphin ServiceMenus. Exec=for file in %f; do new_path=$(echo "$file" | sed "s|^/home/$(whoami)||"); mkdir -p ~/Dropbox/....
mioufts's user avatar
  • 11
1 vote
1 answer
79 views

rsync remote paths with spaces and autocompletion is not working

Running Ubuntu 22.04 I have a remote server that I can connect to with ssh. ssh remote So I can copy a file with rsync: rsync remote:text.txt . rsync will autocomplete tex to test.txt when I press ...
Janghou's user avatar
  • 5,589
-1 votes
1 answer
40 views

Common admin commands?

I usually work with administrator access privileges on my Ubuntu workstations. On a new machine, I've recently been offered only a normal user account; and asked to provide a list of admin-level ...
user643722's user avatar
-1 votes
0 answers
37 views

Open a text file with Maximum or Full Screen via Command Prompt

I have a text file at /home/myUser/Documents/myFile.txt When I open this file by double-clickin on it, it open at maximum and span the entire screen. However, when I use terminal to open the file, ...
user1737015's user avatar
1 vote
2 answers
100 views

How to grant full access to any new folders/files/subfolders created in a specific folder?

I have granted full access to a folder as follows: sudo chmod 777 -R /media/sharedfolder However when a new subfolder is created by User A, that subfolder is not accessible by other users. How can I ...
Ian M's user avatar
  • 173
1 vote
1 answer
26 views

remove ember and vi_mode from SpaceShip Theme

I use Theme Spaceship for my Terminal. But I have two Warnings : Warning! The 'ember' section was not found. Removing it from the prompt. Warning! The 'vi_mode' section was not found. Removing it from ...
AliAshooriyoon's user avatar
1 vote
1 answer
44 views

Kubuntu - KDE No option for Open Terminal Here in Desktop

I don't mean in Dolphin; I mean on the desktop, like in GNOME or Cinnamon Is there a method to integrate it or create a custom solution, such as linking to a personal option that would execute a shell ...
onur.zn's user avatar
  • 11
2 votes
2 answers
106 views

Create correct folder structure from files "folder\file"

I have extracted a .zip file which was generated in Windows. Now I have a list of files like: fileonrootfolder.txt otherfileonrootfolder.txt folder1\ folder1\filex.xyz folder1\filey.xyz folder1\filez....
BerndGit's user avatar
  • 121
1 vote
1 answer
80 views

Steam have unmet dependencies cant install steam

[sudo] password for g: Reading package lists... Done Building dependency tree... Done Reading state information... Done Some packages could not be installed. This may mean that you have requested an ...
M. Cousins The III's user avatar
1 vote
1 answer
73 views

Problems GUI don't start

I turn on the PC and start on a gnu grub version 2.06 screen. Generally typing "exit" starts the normal graphical interface. But now when I do it, the following screen appears: Ubuntu 22.04....
Tobias Milazzo's user avatar
1 vote
1 answer
44 views

How can I create my own app package?

I will give an example: There is .deb, .appimage, flatpak, snap, AUR, etc, but I want to create my own (Example app.fictionalpackage) Maybe zipping a folder with files inside and renaming ".zip&...
Felipecconde's user avatar
0 votes
2 answers
54 views

Delete all files inside a Single Folder - using Terminal, as Admin

I have Timeshift installed on Ubuntu 22.04. It has some unfinished snapshots eating too much of my disc space (close to 100 GB). I am currently using Nautilus/Files to delete them (as administrator) ...
user227495's user avatar
  • 4,009
-1 votes
0 answers
24 views

Cant install ubuntu in my hp laptop

After clicking try or install ubuntu i get into ubuntu live( means try ubuntu) and after that no installation wizard comes please help
Nay Eem's user avatar
0 votes
1 answer
76 views

How to set up disk automount in Ubuntu Server

I'm setting up a small home server consisting of a Raspberry with Ubuntu server. Specifically, I installed Ubuntu 23.10 (GNU/Linux 6.5.0-1007-raspi aarch64) I'm currently manually mounting every ...
Pinguto's user avatar
  • 167
-1 votes
1 answer
77 views

WINE wont open MinecraftInstaller.exe

I am new to Linux and I am using Ubuntu right now. I downloaded wine and I don't remember from what website, but I downloaded MinecraftInstaller.exe. When I tried to open it using the command wine ...
AShingo's user avatar
0 votes
0 answers
32 views

I can't boot on the USB Stick and I have the ubuntu termminal display issue

If you look at this post (When I start the computer, it only shows the terminal), it clearly describes my actual problem. I have a computer on which ubuntu boots directly to the ubuntu terminal ...
melkorfa's user avatar
2 votes
1 answer
55 views

Auto-completion puts back-slash before $ mark, how can I disable it? (ubuntu 22.04)

To access files in a directory from another directory, I often set a variable for that directory. For example (so you can try it your self), export dir1=/usr/local/bin and then type ls $dir1/ ...
Chan Kim's user avatar
  • 1,809
1 vote
0 answers
45 views

Bash Completions "Mashed" Together

Recently, my Bash completions (assuming that's what you call the results after a tab, tab) have been messed up, returning all the commands, kind of mashed together. For example, typing docker then tab,...
stumpylog's user avatar
0 votes
0 answers
22 views

Problem in downloading ROS [duplicate]

Problem while running sudo apt update:
sri charan raj kanakala's user avatar
1 vote
1 answer
75 views

How to iterate eml file with mailutils?

How would a directory of .eml files be iterated? nicholas@mordor:~$ nicholas@mordor:~$ mail -f foomail/foo.eml "/home/nicholas/foomail/foo.eml": 0 messages nicholas@mordor:~$ Whereas, I'...
Nicholas Saunders's user avatar
0 votes
0 answers
23 views

How can I completely reset my terminal theme?

I had been using pywal for a while time and decided that I just wanted a complete reboot on all the themes I have used for it. So before uninstall pywal I had cleared its cache, and performed Wal -R, ...
Cr3jus's user avatar
  • 1
-1 votes
0 answers
41 views

How to export or print server settings for Thunderbird accounts?

Where would be "AppData" on Ubuntu, for the Thunderbird settings? C:\Users\user\AppData\Roaming\Thunderbird\Profiles\xxxxxx.default-release Only looking for server settings as a file. Just ...
Nicholas Saunders's user avatar
0 votes
0 answers
36 views

How to download a specific IMAP folder to mbox from Gmail with Thunderbird?

Looking to export mails from Thunderbird and verify that the emails are readable from the console: nicholas@mordor:~/Downloads$ nicholas@mordor:~/Downloads$ mail -f linux.mbox Cannot create mailbox ...
Nicholas Saunders's user avatar
0 votes
1 answer
91 views

How to import an mbox file into the Pine or Alpine mail client?

I'm a light Alpine e-mail client user. If I navigate into ~/mail and run mail -f baz I'll get an expected list of old alpine/pine messages. Alpine doesn't use mbox. I added an mbox backup to that ...
Nicholas Saunders's user avatar
0 votes
1 answer
42 views

Disable man / nroff's mangling of quotes and dashes

TDLR: How do I disable the magic parsing of the ' and the - inside of foo-bar: ❯ echo "\'hello\' --foo-bar" | nroff ´hello´ ‐‐foo‐bar ^ ^ ^ are not the original input Long: My man ...
Anemoia's user avatar
  • 101
-1 votes
0 answers
17 views

Please help fix error: [E: Type '“deb' is not known on line 1 in source list /etc/apt/sources.list.d/brave-browser-release.list] [duplicate]

I'm on ubuntu 22.04.3 LTS. I was trying to do update but it won't let me. Below are the error messages. My first issue began when Brave browser for no reason suddenly not opening up. Then same message ...
FXStory's user avatar
4 votes
4 answers
594 views

How can I add a suffix to all file names with a certain extension and keep the extension at the end of the name?

I've been trying to add the suffix _new to all .c files in a certain directory. For example, I want the file named example.c to be called example_new.c. I tried to use a for loop: for i in *.c; do mv ...
RaduV's user avatar
  • 41
0 votes
1 answer
34 views

Git (Credential Manager) not found after deleting /home/.dotnet

Recently I uninstalled .NET (which was mistakenly installed to /home/.dotnet/ with the dotnet install script) by deleting the /home/.dotnet/ folder from my Ubuntu 22.04 machine. I have a repo which I ...
Victor Liu's user avatar
5 votes
1 answer
208 views

Is it possible to specify a negative date in the DATE command, that is, a date before the Birth of Christ?

I need to calculate the difference in days between two dates. With the date command we can convert dates to seconds and then calculate the difference in days. For example: $ echo $((($(date +%s --date ...
JungoBongo's user avatar
0 votes
0 answers
18 views

How to fix ambari-server.service failed

ambari-server.service failed after use journalctl -xe command
Thanapat's user avatar
0 votes
0 answers
47 views

How to change konsole scrollback lines from command line on Kubuntu?

with Kubuntu 22.04.3 LTS x86_64 the 179 character command below, did not work. refer: How to change gnome-terminal scrollback lines from command line gsettings set org.gnome.Terminal.Legacy.Profile:/...
joseph22's user avatar
0 votes
0 answers
36 views

Set nocompatible not working in vi/vim on 22.04

I have recently installed a fresh copy of Ubuntu 22.04. When I use vi or vim, it defaults to compatible mode (i.e. arrow keys become ABCD). I have tried creating ~/.exrc and ~/.vimrc with set ...
Lexicon's user avatar
  • 329
0 votes
1 answer
49 views

What type of value do instructions return?

Do instructions in linux have a return value? For example if we write ls we expect to see all the files and subdirectories of the current directory , however if we map ls to a function in C which ...
Root Groves's user avatar
1 vote
0 answers
40 views

Assigning a certain amount of CPU power to a script

I use the time command in a script to calculate the runtime. But sometimes gzip -4 file is done in less time than gzip -1 file Why is this happening؟ How can I make the CPU power level the same at ...
fsgdfgdfgd's user avatar
0 votes
2 answers
67 views

Show and delete Files in a folder from today

How can I use ll to display the files in a folder from today, eg. folder = /home/me/Downloads | today = 21.11.2023? How can I delete the result from 1. (displayed files) then using rm?
D-T's user avatar
  • 1
-4 votes
2 answers
77 views

What is going on with the lslogins instruction

The lslogins instructions lists down the user info of all users however isnt this unsafe? For example suppose a hacker pretends to like you and ends up spending the night with you just to access your ...
Root Groves's user avatar
0 votes
2 answers
131 views

Bash file while loop isnt running well

I am using the Ubuntu terminal emulator for Windows 10 to try learn the Linux terminal. I have this code: cat > c1.sh echo Give me your name! read name echo How many times do you want your laptop ...
Root Groves's user avatar
0 votes
1 answer
61 views

Rename images/ files recursively?

How can I rename images/ files recursively? For example: folder - subfolder1 - a-copy.jpg - subfolder2 - b-copy.jpg - subfolder3 - c-copy.jpg I would like to get: folder - subfolder1 - a-...
Run's user avatar
  • 2,573
0 votes
1 answer
66 views

Find images recursively, copy, rename, and resize?

How can I find images recursively and copy them into their own directories with new names? For example: folder - subfolder1 - a.jpg - subfolder2 - b.jpg - subfolder3 - c.jpg So I can get: ...
Run's user avatar
  • 2,573
2 votes
1 answer
329 views

cron command not working

As a super-user I crontab -e and add a line to source a cronsh.sh file like this: 0 0 * * * source /home/myname/cronsh.sh The content of the cronsh.sh file is this line: date >> /home/myname/...
SO_32's user avatar
  • 119

1
2 3 4 5
448