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

learn more… | top users | synonyms (6)

0
votes
0answers
2 views

Mysql installation failed

mysql server is failed to start suddenly, so I just uninstalled it and tried to reinstall again. But, While installing the mysql server using #apt-get install mysql-server-5.6 I got the following ...
0
votes
0answers
19 views

Is it safe to change ownership of all files in “/root” folder to “root:root” recursively?

I mistakenly ran chown -R buttle:butkus *;chown -R buttle:butkus .* in the /root directory. I killed the command but it definitely changed a lot of files' ownership before I killed it. So a lot of ...
0
votes
1answer
8 views

Syncing Data and Coordinate Scripts Across Machines

I have Ubuntu installed on several laptops and I was wondering if it was possible to synchronize the data on them (from one device) AND also run one script/command on all of them from one device.
0
votes
0answers
15 views

ls -l Commands Gives ? for Permissions

This is a movie file, .avi that is on an external hard drive. It shows up purple when I do: ls -l For some reason I'm not able to see it using a GUI (not admin/sudo). But it will show up using ls ...
0
votes
1answer
14 views

Where can I find the tutorials about ubuntu command lines? [duplicate]

I want to learn more about using command lines to be more productive for example I want to open my files, edit and save it, search and other cool stuffs that we can do from Command lines.
0
votes
0answers
15 views

Executing .sh file for Vassal engine returns “java: file not found”

I just installed Ubuntu, after having used Linux Mint for a year or two. I was hoping to install and use the Vassal strategy game engine (from vassal.org), which worked fine in Mint LMDE. However, ...
0
votes
0answers
9 views

Mount virtualbox shared folder from .desktop file in ubuntu guest on OS X host

Trying to make mounting the shared folder done through a clickable icon on the desktop. I can run this command from the terminal and it works fine and mounts the folder: sudo mount -t vboxsf -o ...
0
votes
0answers
16 views

Concatenate AVI videos with same format on the command line [duplicate]

I want to create a script to concatenate AVI videos, all with exactly the same format, frame rate and resolution. I don't need any editing, only concatenate all the videos in each of the folders. The ...
0
votes
1answer
13 views

Issue when installing anything from terminal [duplicate]

I'm having trouble installing anything through the terminal, I'm using Ubuntu GNOME 15.10. After typing in my password I get this message E: Could not get lock /var/lib/dpkg/lock - open (11: ...
0
votes
1answer
37 views

Exclude some of the files with rsync

I want to do rsync from the folder e.g. /user/home/ford , and I have a directory named xthp inside ford; so now i want to exclude few of the files from the directory xthp. I am using the command ...
-1
votes
0answers
22 views

How to run different shell script in different terminal?

#!/bin/bash gnome-terminal --working-directory /home/path1/output/ -x bash --rcfile .env/bin/activate sh build.sh gnome-terminal --working-directory /home/path2/output/ -x bash --rcfile ...
0
votes
0answers
17 views

Sudo apt-get update, strange many errors [duplicate]

While I'm doing the classic sudo apt-get update I obtain these strange errors. W: Failed to fetch http://it.archive.ubuntu.com/ubuntu/dists/trusty-updates/main/source/Sources Hash Sum mismatch W: ...
13
votes
5answers
2k views

Is there a way to create multiple directories at once with mkdir?

If I wanted to create multiple directories (on the same level) and then feed it a comma seperated list of directory names (or something to that effect)?
0
votes
1answer
11 views

Problem after removal of MongoDB

I installed mongoDB using this instruction manual, but was unable to start it, so I decided to remove the Database by following same instruction set. Since the removal I don't get default options when ...
0
votes
0answers
13 views

Learn Ubuntu shell language [duplicate]

What's the best way to learn it and understand the commands? I am not a total newbie: when it comes to code I can do HTML, vas and Javascript alright. For school I made a text game in Visual Basic: I ...
2
votes
2answers
130 views

Why do scripts ran via “sh *.sh” function differently than “./*.sh”? [duplicate]

I'm using Ubuntu 15.10. I have noticed a weird problem. When running a rsync command embedded in a shell script (as root) with --exclude={} options, rsync works and excludes paths as it's supposed ...
0
votes
0answers
29 views

I cant get the cp command to work

I the terminal if I issue the cp command, it states "The program 'cp' is currently not installed. You can install it by typing: apt-get install coreutils" but when I try to install it, i get the ...
-1
votes
3answers
39 views

Extract info from file

Is there an efficient way to parse a file like: 2 41620 . T G 100 PASS ...
0
votes
1answer
16 views

OpenCV is not installing

I have recently installing OpenCV 3.0.0 with the help of script "install-opencv.sh" I have used command $ sudo bash install-opencv.sh error are below wget: unable to resolve host address ...
0
votes
1answer
12 views

Problem in renaming the partition and opening a file through terminal

I installed Lubunntu 15.10 on my pc and my ntfs partition which I didn't touched at all named in a very weird way I want to rename it so used the Disks to rename after reading this but it shows this ...
0
votes
2answers
30 views

How i can run java from terminal? [on hold]

I've copy the java from downloads folder to the bin folder and I've tried so many ways to set it. So can just type java in terminal. But it always not working. Please help me.
0
votes
1answer
44 views

Ho can I make sure a program is killed when VPN is running?

There is a program that I need to not have running whenever my VPN is running. I don't want to resort to closing it manually every time, because I might forget sometime. I would like to guarantee ...
-1
votes
0answers
17 views

To write the path of a folder with space in its name I have used the following syntax [on hold]

suiit@suiit:~/Desktop$ cd /opt suiit@suiit:/opt$ cd "Assignment 2" bash: cd: Assignment 2: No such file or directory suiit@suiit:/opt$ Why is the above method not working?
1
vote
2answers
62 views

text between 2 words with some lines before patterns

how can I find lines between two words with 3 lines before START_WORD in sed or grep or ... for example output from a command is: my name is Mansour and I confuse to use sed or grep for piping my ...
1
vote
0answers
10 views

Shell script to create multiple accounts? [duplicate]

I'm looking for some help with a school project which needs a shell script to create 10 accounts (5 teaches and 5 students into different groups) along with respected passwords. I'm a true ubuntu noob ...
1
vote
0answers
14 views

managing open LDAP server users

When I'm trying to add a group I'm having errors : $ sudo ldapaddgroup ldsales Error adding group ldsales to LDAP I don't know why I have an error. My userldif: dn: ...
0
votes
0answers
32 views

Spelling mistake in ~/.bashrc

I am a newbie and I wanted actually install MeanJS but then I made the following mistake. I wanted to paste this in the terminal: echo 'export PATH=$HOME/.node/bin:$PATH' >> ~/.bashrc But ...
1
vote
2answers
49 views

Problem with using wildcards when I do CP command in Terminal

I am new and try to learning Terminal Command. Today I faced some problem with cp wildcard command option. I wrote in Terminal this command cp Downloads/[:alnum:] test/ Here, Downloads is the ...
0
votes
1answer
29 views

How do I write an output of one command into a file? [duplicate]

Let's say we got a content of the following command in bash, which consists of several rows, and just one column: tacmd listsystems | grep -i $i | awk '{print $1}' This content is a list of offline ...
0
votes
0answers
23 views

how do I block other computers in LAN like 'net cut' in windows

i used 'net cut' in school to block other computers in LAN. How can I do the same in Ubuntu? I am looking for a program or terminal commands.
-1
votes
0answers
9 views

How to scroll, copy and paste in terminal using Bitnami Ubuntu VM [on hold]

I just install Bitnami RubyStack VM (non GUI). So first time using Ubuntu without GUI. So am missing lot of stuff like the mouse, scrolling through the terminal, copying or pasting text from the host ...
-2
votes
1answer
16 views

Mac Terminal - how to rename directory [on hold]

Misspelled last night and need to rename a drectory :) I created a direcoty and it misspelled. I would like to correct that.
0
votes
2answers
299 views

Why using the command `./myFile a` `a` is intepreted as an input parameter?

After compiling a program with g++ -o myFile myFile.cpp I used ./myFile & to execute the program. When using the ampersand, I understand the program is executing in the background. Can someone ...
0
votes
0answers
55 views

sudo apt-get install showing error

sudo apt-get install shows the following error: Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 2 not ...
3
votes
1answer
124 views

How do I show the git branch with colours in Bash prompt?

I am using this guide to show the branch name in gnome terminal (Ubuntu 15.10) when working in a git repository. Based on the above I now have the below in my ~/.bashrc file: # uncomment for a ...
3
votes
2answers
47 views

Output of running commands in Terminal

I use this line to delete files find . -type f -iname \*.vi -delete and this line to move files find . -name "*.doc" -exec mv {} /path How can I see the process as it happen, I mean I don't ...
3
votes
3answers
82 views

How do I capture a screenshot of a window, and all the windows on top of it?

I'm using screenshots as regression tests for GUI software. Before deploying each new version, a series of automatic tasks is run against the old and the new version, screenshots are generated after ...
0
votes
0answers
15 views

Cannot change shell

I have been researching this for about an hour, and tried all the StackExchange answers I could find. I tried solutions from: Can't make ZSH the default shell ...
0
votes
0answers
30 views

Installing Eclipse

Good evening! I'm new with Linux since this week and I'm having an issue when downloading eclipse from this tutorial Indeed, I'm not able to extract Eclipse to /opt/ for global use When I'm doing ...
4
votes
3answers
72 views

ASCII source file checker

For official Ubuntu documentation where the source English files are in docbook xml, there is a requirement of ASCII only characters. We use a "checker" command line (see here). grep --color='auto' ...
0
votes
1answer
21 views

How do I substitute network addresses? [duplicate]

Right now I have a network server that I frequently have to SSH into. Instead of typing: ssh fox@192.168.2.24 I want to be able to say: ssh fox@srv And that it would SSH into the server at ...
-1
votes
1answer
40 views

Can't see terminal [on hold]

I am new to ubuntu and installed a theme, but now i cant see the terminal anymore. The font is black and the background is black. Is there anyway to fix this without using the terminal?
0
votes
0answers
16 views

How do I navigate between directories in terminal like zsh of oh-my-zsh by TAB navigation, but using bash?

I want know how do I navigate between directories in terminal like zsh of oh-my-zsh by TAB navigation, but using bash? I know oh-my-zsh, its directories navigation works perfectly via TAB completion, ...
0
votes
0answers
31 views

How do I cd into a webdav share (so that I can ls)

Objective is to generate a text file listing all folders/subfolders/files in a directory on a network share (a website I manage). I've successfully connected to the server using nautilus (using path ...
0
votes
0answers
24 views

How can I fix the following error? - “sendmail: fatal: Recipient addresses must be specified on the command line or via the -t option ”

When I am trying to send a test mail from 'cacti' web-console, I am getting the following error in the logs as well as the web console while using 'sendmail' service. How can this be fixed? > ...
2
votes
0answers
31 views

how do I exit the purple command screen? [duplicate]

I switch my laptop on then it's intro is normal then suddenly it appears for me somestuff written and at the end written failed Then after 1 minute/lesser a list of commands or operating text appears ...
0
votes
0answers
14 views

How to remap keys to a mouse button

I want to remap the right Ctrl or right Alt key to a right mouse button.I used different tools like xev ,xmodmap and xdotool,butit didn't worked.
1
vote
1answer
22 views

unable to change owner for my drive

I am new to Ubuntu OS. I have noticed that once of my drive 480 GB drive partition is owned by root. I was trying to change the permission to user skorlam (my user name) but it says : ...
0
votes
0answers
21 views

Only COPY doesn't work on terminal [closed]

I'm using RHEL5 64 bit, Gnome terminal 2.16.0. I can copy external text and paste it into the terminal, but i'm not able to copy anything from within the terminal. ctrl+shift+C doesn't work. ...
0
votes
1answer
23 views

mariadb-server syntax error

I am writing a bash script and having trouble with $PASSWORD. Can anyone please tell me the correct way to write sql lines in bash script? QUERY="GRANT ALL PRIVILEGES ON db.* TO 'user'@'localhost' ...