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
2 votes
1 answer
2k views

Setting default window size in Ubuntu 16.04 terminal

How can I permanently set a window size in Ubuntu 16.04? I tried to go to Edit -> Edit Preferences and was able to change the text font and size but not the window size. However, under Terminal I ...
amphibient's user avatar
  • 1,257
0 votes
1 answer
505 views

Reduce the physical dimensions of a pdf using the command line

I have a scanned pdf of a book which is 366.96 x 624.6 pts according to pdfinfo. Taking 72 pts to the inch this makes the physical dimensions of the pdf about 5.1'' x 8.67''. I printed it using Lulu....
JMJ's user avatar
  • 101
0 votes
0 answers
2k views

Unknown Commands Give "Bus error (core dumped)"

Any unknown command in Terminal outputs "Bus error (core dumped)." For example typing the command "foobar" gives "Bus error (core dumped)" and typing the command "asldkfjs" gives the same thing. ...
jswien's user avatar
  • 181
0 votes
0 answers
502 views

How to stop file-roller from outputting anything and hanging on the process

I'm writing a program that uses file-roller to extract an ISO file. However I keep getting a warning and I don't want to see this warning. Also file-roller hangs after this warning. Gtk-Message: ...
13aal's user avatar
  • 334
0 votes
1 answer
2k views

popd not working as expected

It seems that pushd and popd are not working as expected (popping the last pushed directory) but it is popping the first directory and the after the second popd it goes to home directory. user@...
urben's user avatar
  • 421
0 votes
1 answer
3k views

Crontab execution of multiple commands but last command is omitted

I know how to execute multiple command in one crontab line but I can't understand why my last command is not being executed. My (root) crontab is like 5 0 1,15 * * echo $(date) >> /root/...
Lean-Juc Dicarp's user avatar
16 votes
1 answer
7k views

How do I scp files of size less than x?

I am developing something on my laptop and scp'ing the files to a high performance PC (a server with no monitor). Out of laziness I just do this currently (on the laptop): scp -r ~/project/* server:~/...
iammax's user avatar
  • 348
4 votes
1 answer
5k views

Automated virtual machine backups on Ubuntu - VirtualBox

I have several virtual machines running on Virtualbox. I want to take a backup of these virtual machines and store in source control for disaster recover. From what I understand, snapshots of these ...
J0991's user avatar
  • 203
0 votes
0 answers
431 views

Broken terminal autocomplete with "TAB" [duplicate]

After some manipulations (i don't know, which excatly did it) i unexpectedly broke terminal autocomplete feature. Each time i try yo use it i get: nimga@ubuntu17:~$ sudo systemctl res-bash: /dev/null:...
darth jemico's user avatar
0 votes
1 answer
1k views

What is the meaning of "-y" in this command [duplicate]

I don't understand the meaning of -y. command: apt-get install -y clickhouse-client & sudo apt-get install -y passenger There are many commands have -y.
Harsh Patel's user avatar
-1 votes
1 answer
317 views

How to use pv command for executable file?

I know that I can use pv command for showing progress of the command. for example: for i in {1..200}; do sleep 0.1; echo "$i"; done | pv -ls 200 > output.txt But when I have a file main.c which ...
agangwal's user avatar
  • 103
1 vote
1 answer
3k views

how to customize the terminal appearance from within the terminal

I just got the Ubuntu bash terminal on windows and I really like being able to do linux stuff on windows, but I want to customize the terminal appearance. I know on actual Ubuntu you can customize the ...
Mike Delmonaco's user avatar
0 votes
3 answers
267 views

Easiest way to shorten directory?

I am aware this may be a duplicate, and if so, I will delete it. What is the easiest way to navigate to a deep directory without having to type the directory every time. I do a lot of stuff in the ...
J. Doe's user avatar
  • 333
0 votes
1 answer
198 views

What do these numbers mean in apt-get output?

Could someone tell me what these numbers mean in apt-get output? (see last line in the image) Percentage at the left. Percentage inside the brackets (at the right) The time at the right (which seems ...
Shirley Temple's user avatar
3 votes
1 answer
8k views

How to see the auth.log messages in the terminal?

I would like to find a way to display the information saved in the auth.log file in real time in my terminal (everytime someone tries to connect to my server, I want it to appear in my terminal) ...
Olivia's user avatar
  • 39
0 votes
1 answer
318 views

Can't execute bash script from shortcut

I try to execute a bash script from a shortcut set from the settings (system settings > keyboard > shortcuts or analogous), but it doesn't execute, although it works just fine from the terminal.....
Johannes Lemonde's user avatar
0 votes
1 answer
248 views

Command substitution does not work in Ubuntu shortcuts

I want to set a combination of keys as a shortcut, which is possible in Ubuntu through system settings > keyboard > shortcuts (may be different, my laptop isn't in English). The command line ...
Johannes Lemonde's user avatar
1 vote
0 answers
19 views

Command lines : use returning value as argument for another command [duplicate]

I've got two commands, the first one is rhythmbox-client --print-playing, which prints (returns) a string into the terminal, and another one, notify-send text, which sends a system notification. Now I'...
Johannes Lemonde's user avatar
0 votes
4 answers
5k views

How to filter du output?

So that it won't show directories that contain an empty file named "0k" that I use as a flag ? It seems --exclude can't deal with that.
useful's user avatar
  • 1,834
0 votes
0 answers
324 views

Terminal auto answer question [duplicate]

When I try to update my machine using terminal it ask some questions about should it override the current file or not, or should it continue or not. So my question is how can I make it just to ...
PenAndPapers's user avatar
0 votes
1 answer
4k views

How to show a progress bar on screen based on the output of a program?

I have done a computation using CUDA and it takes around 12 minutes to complete the whole computation. I am using this command in a .sh file to run the program: CUDA_VISIBLE_DEVICES=0 ./a1.out | tee ...
agangwal's user avatar
  • 103
4 votes
1 answer
4k views

Remove subdirectories with same name from different directories at same level

No easy way to explain but this is my question in demonstration. I have a file server with home directory backups. They read like: /home/ron/Downloads /home/ron/Documents /home/rob/Downloads /home/...
thursDave's user avatar
  • 105
2 votes
4 answers
2k views

Rename files to remove text after dot

I have these files: JE.TR21201610011612514806.47250728 JE.TR21201610011613514807.91514463 JE.TR21201610011614514808.4107721050 JE.TR21201610011626514818.3578493139 JE.TR21201610011627514819....
jeanBrooklyn's user avatar
0 votes
0 answers
189 views

Sudoers file shows effect only after touch - w.r.t the usb device

Suoders file contains this line, where abc is the username: abc ALL=NOPASSWD: /bin/cat /dev/sdb1 My problem is that when I plugin a usb, I can't execute the command sudo cat /dev/sdb1 without ...
Aquarius_Girl's user avatar
1 vote
4 answers
8k views

Difference between 'cd' and 'cd ..' in unix /linux [duplicate]

I am completely new to unix/linux OS. I have installed Ubuntu 16.04.2 LTS in my system. What is the difference between cd and cd .. ? I have opened a terminal and executed the following command: ...
Avinash Reddy's user avatar
9 votes
4 answers
18k views

How to get number of gpu cards I have from a command line?

I am trying to make a CUDA tool and I have to make it scalable. I need to give number of GPU a system have as an argument to my tool. Please tell me if there is any command for getting number of GPUs ...
agangwal's user avatar
  • 103
0 votes
3 answers
431 views

what does nice -999 ls -l command do?

ls -l list out the files and folders in the directory and nice shows the programs or files based on priority if I'm not wrong. However, what does nice -999 ls -l do? I have tried the command in ...
Julfikar's user avatar
  • 173
1 vote
3 answers
19k views

Create file in home directory from another directory [duplicate]

I know touch & echo for creating an empty file. But how can I create an empty file in the home directory in one line? I have tried touch ~/boo.txt but it's creating the file. I'm new to shell, I ...
Julfikar's user avatar
  • 173
2 votes
1 answer
3k views

Ubuntu 16.04 correct way to specify a directory / folder using terminal chown to recursively change ownership / permissions

OK - so I open terminal and I want to use chown to change permissions / ownership recursively. I want to use sudo chown -R username:group directory The folder I want to change permissions on is ...
kerry's user avatar
  • 311
3 votes
2 answers
6k views

Running Wine applications from different terminal paths yield different results? [closed]

I'm going to use the game "cosmoteer" as an example (as it's free), but I ran into this with others. Issue: If I run: cd /path/to/executable/ wine exec.exe The program runs. But if I do: wine ...
Francisco Laferrière's user avatar
2 votes
1 answer
1k views

Qualcomm Atheros QCA9377, Ubuntu 17.04, ethernet and wifi connection not working

I have Dell inspiron 15 5000 with windows and Ubuntu on dualboot and as I wrote in the title, the problem is the internet connection that is not working with ethernet cable and wifi, only on Ubuntu. ...
Yarrai's user avatar
  • 33
0 votes
0 answers
1k views

Error While Enabling TPM

First thing's first, I opened up the terminal and entered sudo apt-get install tpm-tools trousers and it asked if I was okay with it taking up 'x' amount of space but then as it installed, this error ...
John Antonio Anselmo's user avatar
3 votes
1 answer
516 views

xdotool type error. Can't type a field starting from - (hyphen/dash) with . (dot) in the same field

$ xdotool type -14.7873 type: unrecognized option '-14.7873' Usage: type [--window windowid] [--delay milliseconds] <things to type> --window <windowid> - specify a window to send keys ...
Neeraj Bisht's user avatar
0 votes
1 answer
31 views

Using file test code to test for permissions, I have used -rwx inside [] but will not work?

if [ -w /etc/shadow ] then echo "You have the powers of the super user!" else echo "Wow we probably have to try this again logged as root" fi I have logged in as root and the command ...
Kelvin Amoako's user avatar
0 votes
3 answers
289 views

I installed something via terminal, but wasn't in the home directory when it did it.

I installed npm via terminal, but when I did it I wasn't in the home folder. Instead, I was in the folder for something I needed npm to install, where I was then prompted to use sudo apt install npm ...
AnalyticAscent's user avatar
1 vote
0 answers
922 views

Minecraft Forge

When I try to open minecraft forge using the terminal, I keep getting an error that it is unable to access the file. chrx@chrx:~$ java -jar forge-1.7.10-10.13.4.1614-1.7.10-installer.jar Error: ...
Cyber Animations's user avatar
0 votes
2 answers
751 views

diablo 2 on Lubuntu

I have a diablo 2 disc in my disk drive whenever I try to change the execute permission to anybody it Says Error setting permissions: Read-only file system. Help!
themadgamer's user avatar
8 votes
1 answer
34k views

How to upgrade GTK 3.18 to 3.20 on ubuntu 16.04? [duplicate]

While trying to install lollypop I got this error Traceback (most recent call last): File "/usr/lib/python3/dist-packages/lollypop/container.py", line 79, in update_db self.__show_first_run() ...
Keshav Maheshwari's user avatar
1 vote
4 answers
8k views

Delete files in a directory older than 7 days, but always leave at least 20 files intact

Beginner here: I want to sync pictures to a folder but want them to be recent. That's why I want them to be deleted if they are older then 7 days. Current code for it: find ./recentpicturesdirectory ...
Dominik Meyer's user avatar
0 votes
0 answers
541 views

MOUSE LAGs WHEN I EXTEND DISPLAY ON ANOTHER MONITOR

I am running ubuntu 16.04 LTS when i extend my display to another screen(LG monitor) the mouse lags leaving a trail behind that doesn't change even when i downgrade the resolution. Any suggestions
victor kuchiki's user avatar
1 vote
1 answer
1k views

I can't launch Scene Builder

I recently started JAVAFX, so I got SceneBuilder to help... but I can't it launch after installation and reinstallation. It prints segmentation fault (core dumped) as an error when I try to run ...
Beulah's user avatar
  • 164
0 votes
1 answer
1k views

Raid controller serial number

Is there a way I can pull various information from my RAID controller using a command? Specifically, I am interested in (at least) the following: Raid controller serial number Raid controller type ...
Maho Mamulashvili's user avatar
3 votes
1 answer
14k views

how to remove a symlink from /usr/bin/python in Ubuntu

I was trying to solve a problem and unfortunately used this command in terminal sudo ln -sf python2.7.12 /usr/bin/python Which screwed my python installation. Now, when I type python in the ...
Cyberzinga's user avatar
109 votes
7 answers
361k views

What is the difference between "chmod +x" and "chmod 755"?

When it comes to making a file executable what is the difference between chmod 755 and chmod +x and when would I use which? I so far have only used chmod +x and I just read something and it used chmod ...
Darth4212's user avatar
  • 1,308
0 votes
0 answers
32 views

How to export current activity terminal screen to a text file including all commands run with all output messages [duplicate]

This sounds simple but I want to export all my commands and their outputs/messages from the terminal screen to a text file so that at later point of time I can refer what commands I run along with ...
DvG's user avatar
  • 101
0 votes
1 answer
1k views

Home directory tilde symbol replaced with minus symbol

Trivial but annoying thing with my Ubuntu system. My tilde (~) symbol representing my home directory has been replaced with the minus (-) symbol. It works on the command line as part of the path, e.g, ...
Mike 's user avatar
  • 11
3 votes
1 answer
2k views

terminal autocomplete for ls doesn't go into the directory

When I attempt to tab-autocomplete an ls directory name, the autocomplete does not give the slash that allows me to type the next subdirectory. Instead, it gives me a space, making me have to ...
efremdan1's user avatar
0 votes
1 answer
406 views

How to run commands one after anther in shell script using gnu parallel

I have a commands like this time parallel -j 40 :::: filetoprocess.sh time parallel -j 40 :::: filetoprocess2.sh I want to run this commands one afterother i.e when time parallel -j 40 :::: ...
Gaurav Singh's user avatar
0 votes
0 answers
1k views

Crontab says command not found [duplicate]

I just setup a cron to restart 'Thin' application server for my Ruby application every hour. I have tried every method but the cron is giving error saying command not found. My script looks something ...
B A's user avatar
  • 101

1
200 201
202
203 204
457