Questions about using the command-line interface (CLI).

learn more… | top users | synonyms (6)

1
vote
1answer
24 views

How to Defrag XFS

I have a /home partition in a separate disk with XFS, how do I de-fragment it ? (on-line or off-line) I haven't tried anything yet and the / partition has BTRFS. Also how to schedule it would be ...
-1
votes
0answers
9 views

Want to rename multiple files with removing of first 12 characters [duplicate]

I want to rename multiple file with some conditions . In all files ,first 12 characters are same and i want to remove these first 12 characters of all files. Here is short example : Suppose I have ...
0
votes
2answers
45 views

How do I copy Command Line Text? System Monitor > Processes > Column “Command Line”

Startup Applications Preferences I'm adding additional startup programs, and I've found it most easy to just launch up the Process tab and type command (manually) from the Command Input Field. I just ...
0
votes
0answers
53 views

How to fix Error after run sudo apt-get update

I get following error after runing sudo apt-get update in ubuntu terminal: Hit:2 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease Get:1 ...
0
votes
1answer
35 views

Is it possible to install rocket (rkt) in ubuntu?

Is it possible to install rocket rkt (CLI for running app container in linux) in ubuntu? How?I just want to try it out without setting up a virtual machine and installing CoreOs.
1
vote
0answers
18 views

Command line syntax for VLC GUI video convert? [closed]

I'm trying to write a script to convert lots of video files. Using the GUI, I was able get VLC to perform the kind of conversion I wanted. However, I can't see a way to generate an equivalent ...
1
vote
0answers
15 views

Open Terminal Shows : bash: alias: =: not found How to remove? [duplicate]

when i open my terminal it shows: bash: alias: osmall: not found bash: alias: =: not found bash: alias: cd: not found bash: alias: /var/www/html/OpenSupermall/: not found bash: alias: ...
0
votes
1answer
57 views

run php file from cron and start browser through exec on ubuntu [duplicate]

I am trying to start FireFox from php script using exec("firefox"). This works fine if i run php file from the terminal but does not work when run by the cron. User for cron & terminal is root. ...
1
vote
0answers
38 views

The locate command cannot find obvious directory?

I have a directory called OC located in /home/raph/OC. I've updated the database with the updatedb command and i still can't find the directory. I've seen in an another post that the problem could ...
0
votes
0answers
29 views

A problem with Terminal

I've just download Steam on my Ubuntu 16.04 LTS and it said that I need to type my current password but even though my keyboard is still working correctly, I can't even type anything on Terminal. So ...
1
vote
3answers
48 views

How to rename photo filename to include the date?

I have a group of photo files that are named with only a sequence number like: Imagexxxx.jpg (xxxx is just a sequence number) what I am trying to search but sadly no results, is to add the date of the ...
0
votes
0answers
42 views

I have a problem with a loop in a script. How I can create a loop in a loop?

I'm doing a script for improving my scripting capacities, but I can't make a loop work, how I can fix it? Here's the script: As far as my knowledge go, the problem is in the below script: read op2; ...
0
votes
0answers
32 views

SSH issue commands stucking

when I do ssh to my server and logged in successfully through terminal, the commands are stuking and taking longer to infinite time. e.g. ls,nano etc. I'm using ubuntu14.04 Terminal.
0
votes
3answers
53 views

How to display terminal using CTRL+ ~

How do I set the shortcut to display the current terminal that is open?(Let's say I am navigating facebook and then I press ctrl+ ~ my terminal would immediately display)
-1
votes
0answers
27 views

apt-get is stuck at “fetched xxkb in xxsec” ubuntu 16.04 fresh install [duplicate]

I have installed ubuntu 16.04 and for the first thing, I connected it to internet and runned sudo apt-get update command from terminal. But I stuck at below state : Get:1 ...
0
votes
0answers
14 views

reboot bash script for Beaglebone stops without finishing

For the longest time I used the following script: #!/bin/bash echo 'start' && ssh -o 'StrictHostKeyChecking no' root@192.168.7.2 'reboot'&& echo 'end' which echos "start" and also ...
0
votes
1answer
27 views

Differende between apt-get and aptitude [duplicate]

Can anyone please tell me difference between 1 and 2 sudo apt-get install vlc sudo aptitude install vlc I tried installing vlc with 1 and it did not work, but with 2 it did. I don't get the ...
0
votes
0answers
18 views

Package util concentrated on user experience

I hate user experience of apt* tools. With so many OSes around it, it is hard to remember all those cryptic apt-get/dpkg/apt-cache commands for hackers. So, is there some script/wrapper that can be ...
0
votes
0answers
27 views

Can I edit the virtual TTY display properties? [duplicate]

Is it possible to edit the fonts, zoom level, and display properties of the virtual TTYs that we access via ctrl+alt+F1? I just find my fonts too big, and would like to adjust them.
0
votes
0answers
30 views

My UI changed after reinstalling alsa

After running these commands, sudo apt-get remove --purge alsa-base pulseaudio sudo apt-get install alsa-base pulseaudio The UI changed. Why? I'm running 16.04LTS.
1
vote
0answers
37 views

retreiving lost files [closed]

I was trying to move multiple files and directories using a list of files and directories. I used the following command and realized I didn't set the destination correctly. while read file; do mv ...
1
vote
1answer
24 views

Geany is crashing with segfault during startup

Suddenly from today my Geany editor doesn't run at all neither from shortcut nor from terminal. My Ubuntu version is 14.04 Trusty Tahr. Geany version is 1.26. I also tried re-installing the latest ...
0
votes
1answer
55 views

Copy files from list of files and create necessary directory structure

I have a file list like below: app/code/community/Company/Module/Block/Adminhtml/BlockAlias.php app/code/community/Company/Module/Block/Adminhtml/BlockAlias/Edit.php ...
9
votes
5answers
535 views

How to detect the number of opened terminals by the user

I am using Ubuntu and can manually change the bash shell prompt color to green using export PS1="\e[0;32m[\u@\h \W]\$ \e[m" However, I want the shell prompt color to automatically change whenever ...
0
votes
0answers
20 views

User cannot edit files in a directory even though the user belongs to a group with write permissions?

I have an Apache2 installation. I have a folder on my desktop that I would like to use as the root directory rather than the default location. I have confirmed that Apache is using the www-data user ...
0
votes
1answer
58 views

Provide password to `nmcli con up` in terminal 14.04

I am trying to connect to my VPN using terminal. My VPN password is a TOTP, so cannot save it to the connection conf file. When I try to connect, a dialog appear to enter password. I want to do it in ...
0
votes
1answer
52 views

Help pls! Only command line starts after dysrupted upgrade

help pls, here is the situation: I tried to upgrade from Ubuntu 14.04 to 15.10 via update-manager. It all went well, all the packages were downloaded, step "installing packages" (or something like ...
0
votes
1answer
17 views

Installing Ruby On Rails shows errors on line 168

I am trying to install ruby on rails on my me elementary OS 0.3.2 Freya. and now i am seeing the following errors on my terminal. even if when i restart the terminal the errors shows on the first ...
0
votes
1answer
14 views

Permissions inside flash drive

I am trying to compile my C++ programs that I have written on my flash drive. I am in the terminal right now, and currently inside of the correct file (in my flash drive) that I want to compile. ...
0
votes
3answers
51 views

How can I easily cd into a flash drive from cli?

Right now I am accessing all of my files from my native directories. However, I want to also use a flash drive for extra storage. In that case, what would my terminal command be to access my flash ...
-1
votes
1answer
29 views

bashcript that opens another bashscript [duplicate]

I have a script that opens terminal and list directories. My problem is that the second terminal ls the files but disapears in a flash. how can i make it not disappear? i have tried sleep but not ...
-3
votes
0answers
26 views

ubuntu software center not opening via terminal [duplicate]

I am encountering this problem , File "/usr/bin/software-center", line 140 print time.time() ^ SyntaxError: invalid syntax whenever i try to open software center via terminal. ...
1
vote
1answer
37 views

Key repeat command in 16.04

14.04 commnad: "dconf write /org/gnome/settings-daemon/peripherals/keyboard/repeat true" doesn't work in 16.04. Unfortuantely in game that I play command xset r off also doesn't work. Is there ...
0
votes
3answers
15 views

replace starting numerical digits

I have content as given below. 2 - 2 1.0 2 10. 2 11. 2 12. Groover MP, Fundamentos de Manufactura Moderna, Tercera ed., Mc ...
0
votes
1answer
54 views

How to extract a rectangle of text from a file in CLI?

Huge note: I AM NOT TALKING ABOUT TEXT EDITORS! I need to extract (stdout is OK) a rectangle of text from a text file. A rectangle should be the text between lines l1 and l2 and columns c1 and c2. I ...
1
vote
1answer
91 views

How to change Terminal Title in ubuntu 16.04

When I was using ubuntu 14.04, it's easy to set title. Just press F2 or move mouse to top menu. But there is no menu on ubuntu 16.04 and press F2 can't change the title. What should I do?
3
votes
2answers
44 views

How to write a script to toggle unitytweaktool setting (hotcorners)

Specifically, I want to toggle hotcorners on/off every time I start a steam game. But I have no knowledge of scripts of any kind. Any resources to learn this kind of stuff would be great. Please ...
0
votes
2answers
41 views

Invert directory structure

I made a horrible error in a very long-running computation. One part of the computation stores result files in a directory structure like so: path/to/first/[A,B,C,D]/[1,2,3,4,5]/outfiles And ...
0
votes
0answers
25 views

Resource interpreted as Stylesheet but transferred with MIME type text/html

I have a problem with my apache2. When I run my project, my browser doesn't display css files, images and other. I tryed to add AddType text/css .css to .htaccess file, but it didn't give me positive ...
-1
votes
1answer
47 views

Reg ex - awk - grep from getline result [closed]

I have a expr in awk, but I can't grep the result echo 34100 | awk '{expr $1 / 33.7 | getline result;}' -> sh: 1: 1009.89: not found the calculation is ok but I need to have the 1009.89. Could ...
-1
votes
1answer
44 views

Download .tar.gz 14.04

I know there's a lot of questions about downloading .tar.gz files, but I haven't found any that explain my problem. When I'm trying to install these files, using the ./config make sudo make install. ...
0
votes
1answer
27 views

Create double click executable file

I would like to create a file, which could be saved in the Desktop or in another folder, which upon a user double click on it executes some commands, one of which should be as super user (sudo) and ...
0
votes
0answers
21 views

terminal not proceeding after I enter my password in ubuntu

I copy pasted this terminal: wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add At which, it asks for my password. The cursor moves to the next line and then nothing happens ...
1
vote
0answers
13 views

Printing over ssh: “cat file | lpr” or “lpr file”

I am looking at how to print a file over ssh. Two websites (The Linux Documentation Project and Computer Hope) suggest the command "lpr" but both seem to suggest two different methods, with no obvious ...
1
vote
3answers
27 views

How do I locate all files that include specific word as part of name and end with specific extension?

I am using locate command. I want to find all files that end with specific extension and have specific keyword in their name. For example I want to find image such as this: ...
-1
votes
1answer
38 views

Why does it show “'string' was not declared in this scope” in line 6? [on hold]

#include <iostream> #include <string> #include <map> int main(){ std::map <string, int> example; example["keyOne"]=1; example["keyTwo"]=2; std::cout << ...
0
votes
2answers
39 views

Bash scripting problem on echo -ing the current working directory

I have this code: #!/bin/bash #clear screen clear # Ask for name of directory to create echo "Please enter a directory name" echo "that you wish to create" read dir1 # create directory mkdir ...
0
votes
1answer
16 views

How to fetch binaries a package will install?

Given a package name that is not installed (binutils is installed and binutils-gold is not in my case), how to figure out what binaries it is going to install? dpkg -l binutils* Above lists out ...
0
votes
1answer
51 views

Error while updating and installing a package in ubuntu server 14.04 LTS

I am new in the world of linux . I am trying to update and install some packages in Ubuntu Server 14.04 LTS but it is showing error . I have seen lot on same question in this site but not able to ...
1
vote
1answer
21 views

Open multiple directories with vlc in command line

How can I specify multiple directories to be opened in vlc ? vlc path/to/folder1 path/to/folder2 will ignore folder2