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

learn more… | top users | synonyms (6)

1
vote
0answers
13 views

How can I run a custom script on /usr/bin/ via cronjob?

First of all: This is not a duplicated of Cronjobs made via cronjob not working which seems to be fixed by simply giving execution permissions to the script and/or adding the #!/bin/bash at the ...
0
votes
1answer
23 views

How to change file types?

I changed the permissions of some directories and the files within them, so now when I list them, most are highlighted green or have names that are green. Some of the files used to be blue or white, ...
0
votes
1answer
16 views

Bash script not working with crontab [on hold]

I own a raspberry pi that runs raspbian jessie. I'm using this raspberry with motioneye as a system surveillance. Motioneye records files to a sd card but i want to delete older files in folder ...
2
votes
2answers
69 views

replace a string by variable in a file using bash script

through bash script, I am trying to find a value-number- from a text in a file, then make a new variable then replace it with a string in that file for example. in a file in /root/test.txt , i have a ...
0
votes
0answers
21 views

How to improve bash scripting from 1 long line to a better method? [migrated]

I have a script that open up terminal and open up 5 tabs, execute a certain command, and go to a certain working directory. #!/bin/sh gnome-terminal --tab --title="Zookeeper" --profile Hold -e "sh ...
2
votes
0answers
29 views

ls output not compact anymore

I wanted to ask about the ls command in lubuntu 15.10. Now there is a new line for every entry. I know from other distributions that there is also an output style where ls outputs the content of ...
0
votes
1answer
27 views

format old Linux version and install new one

My desktop has Ubuntu 10.04lts operating system. I wish to remove it and install a new Linux flavour. Can anyone please tell how it is done? Thanks in advanced P.S. I don't wanna lose my data. Not ...
0
votes
0answers
17 views

How to autorun a ruby script in Ubuntu?

I'm using rvm and running ruby 2.3.0. which ruby returns /home/ubuntu/.rvm/rubies/ruby-2.3.0/bin/ruby The script location is: /home/redline/sinatra-aggregator/server.rb. I've tried all sorts of ...
-4
votes
0answers
38 views

How to put a date as one argument

I have a decryption program "ELF" that takes in a string as an argument and an encrypted text with a calendar image, when i try to input the encrypted text NXIS24CuEq@uEq@uEq@u into the program I just ...
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: ...
1
vote
0answers
16 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
10 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
22 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
30 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
20 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
19 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
145 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
11 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
32 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
31 views

How do I access my Bash History? [duplicate]

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 ...
2
votes
3answers
218 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
11 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
13 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
16 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
32 views

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

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
37 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
32 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
40 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
17 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
29 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
17 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
13 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
136 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
34 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
44 views

Extract info from file

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