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

learn more… | top users | synonyms (6)

0
votes
0answers
6 views

How to put a date as one argument

I have a program that when executed from the command line should get another argument beside ./dec, so if it received one argument it will output an error. and if i put more than two arguments ./dec a ...
0
votes
0answers
4 views

Postfix- sending mail from shell Error

I've configured postfix. Somehow I'm getting this warning while executing following command. echo "hi" | mail -s "test_sub" "receiver_email_ID" It prompts me these warnings: send-mail: warning: ...
0
votes
0answers
13 views

How to create users using a csv file created with LibreOffice Spreadsheet?

I am trying to create multiple users and a group all at once to help me learn linux, but im running into trouble. (Mainly I have no clue what i am doing.) groupadd Avengers: useradd Hulk: useradd ...
0
votes
0answers
8 views

Can I use a hexadecimal value rather than ANSI colors in gnome-terminal? [duplicate]

I would like to have specific colors for my PS1 prompt, but those colors do not match my theme. I would like to keep the theme consistent for vim and other programs; however, I would like to change ...
0
votes
1answer
19 views

Is there anything like Microsoft's taskkill in Terminal? [duplicate]

Is there anything similar to MS Windows' command-line tool taskkill for Ubuntu's command line?
2
votes
1answer
21 views

./run.sh: line 1: java: command not found

I'm trying to install worksnaps client so I can start working on a project. I'm running Ubuntu 14.04 LTS 32bit system. Installation and Configuration for worksnaps are simple : Download the ...
1
vote
2answers
29 views

How to rename a partition [duplicate]

I have partitions that I would like to rename. What are the terminal commands to do this?
0
votes
0answers
18 views

Ubuntu 15.10 slow stepper scrolling in terminal

Upgrade to 15.10, the stepper scrolling in GNOME Terminal is unresponsive, requiring between 4 and 7 clicks to scroll one line. I use a theme with scrollbar steppers (the arrows either end of the ...
-3
votes
0answers
18 views

Starting ubuntu from scratch [on hold]

Please I need assistance on how to proceed in ubuntu after successfully log in. I want to know how to proceed after entering my user name and password.
1
vote
2answers
142 views

How do I check if a certain application is running by its file name?

How do I check if a certain application is running by its file name? Or if that's not possible, then by its command line? I know "pkill" has the option "-f" but I don't need to kill it, just check. ...
0
votes
0answers
12 views

ubuntu server share folder inside vm to other vm

I have VMs(Ubuntu server and Windows7) How do i able to make ubuntu server share folder to Window 7 ? and window 7 is able to seeing shared folder from ubuntu server ?
2
votes
0answers
9 views

Changing Xscreensaver's Video Player from mpv to VLC

The official documentation for xscreensaver gives an example of how to play videos as a screensaver: Install mpv and add something like the following to the `programs' preference in your ...
0
votes
1answer
31 views

Why is rsync copying directory structure when my find result only shows me files?

I have an annoyingly complicated find command I've cobbled together that I pipe to rsync with the intention of copying files and syncing new versions. I'm trying to write something that is efficient ...
0
votes
2answers
29 views

How do I access my Bash History?

I am fairly new to Linux and I need to find a way to show the contents of my Bash History via the command line, and unfortunately I can't seem to find anything that works, or that I can understand. I ...
1
vote
2answers
202 views

Searching for specific magic byte in an ocean of files

I want to know how I can search for a specific file type: I have entered a SSH server and I am trying to search for a .jpg file, but the owner of the server (my teacher) has removed all extensions. I ...
0
votes
0answers
10 views

How to use IWCONFIG to set my wireless power management timeout/profile

Can I use iwconfig to set my wireless power management timeout? I don't know what can be done, but I read the man page on the command line and it has some configurations for power management. What I ...
0
votes
0answers
12 views

command-line: line 0: Bad configuration option: PermitLocalCommand

I am getting error in Ubuntu command-line: line 0: Bad configuration option: PermitLocalCommand while try to copy file from one system to other. I am Using command : scp testfile.txt ...
0
votes
1answer
15 views

Acidentally used gzip -r and now individual files in many sublevels are zipped [duplicate]

I tried to use the gzip command on my public_html folder, and I've landed in a pretty big mess. Exact command I used: gzip -r /home/account/www/ Now, in many sub-levels I have individually ...
0
votes
1answer
25 views

How to change command line prompt name and add path of current directory after name?

Currently my command line prompt looks like this nuve@nuve-Inspiron-5547:~$ but i want to change it Azer's Terminal:"Path of current directory" . How can I do this? I need exact code line to add to ...
-1
votes
1answer
34 views

What's wrong with tee command?

I am running the following python script piped to tee command #!/usr/bin/python from sys import exit,exc_info from time import sleep try: print "hello" #raise KeyboardInterrupt ...
0
votes
1answer
31 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
39 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
2answers
18 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
19 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
18 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
22 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
16 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
14 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
41 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
28 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 ...
1
vote
0answers
16 views

Increase the root partition size on Ubuntu Server 14.04

How can I increase the root partition size of a virtualized Ubuntu Server 14.04 using the CLI?
0
votes
0answers
18 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
4k 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
12 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
14 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
135 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
33 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
43 views

Extract info from file

Is there an efficient way to parse a file like: 2 41620 . T G 100 PASS ...
0
votes
1answer
19 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
15 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
34 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.
1
vote
1answer
63 views

How 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
63 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
15 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
35 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
52 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
31 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 ...