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

learn more… | top users | synonyms (6)

1
vote
1answer
20 views

Right click to paste in terminal

At work I'm using putty to connect to a lot of Red Hat / CentOS machines and I love the fact that selecting a text means copy and right click means paste. Can I set Ubuntu's default terminal to do ...
1
vote
2answers
16 views

Bash script not recording

So, here i am, playing with some bash scripts, and there is something that doesn't work: #!/bin/bash script -c \ sudo apt-get update && sudo apt-get upgrade && exit echo "(Not ...
0
votes
4answers
65 views

Id like a gui for the terminal. Is there any out there?

Please dont shoot me for asking such a thing! lol I was wondering if there is a gui that will work for terminals like just click update to apt-get update or click a button to do autoremove or upgrade ...
1
vote
0answers
12 views

script to concatenate multiple text files found in zip archives nested in multiple folders

I have 30 gig of text files and html files from various sources laying in a nested folder hierarchy. All these folders are in my home directory in a folder named zipFiles. The hierarchy is 20 levels ...
0
votes
0answers
10 views

sh script works manually but not via cron

so I have a cronjob created using this tutorial: http://www.matt-helps.com/automatic-backup-of-mysql-database-to-s3/ It runs when I give the command sudo sh s3BucketBackupScript.sh But I can't get ...
0
votes
2answers
18 views

find does not go through all files in folder structure

I want to convert a massive bunch of wmf files (120860!) to svg in many subfolders (27 subfolder with many sub-subfolders each). I have this bash script that does for i in `find -iname "*.wmf"`; do ...
0
votes
0answers
26 views

Bash - for loop help needed please

So I have the below script and it works as expected (it SSH's to 40 hosts, goes to a specific file looks for a specific word with a date of yesterday, puts a . at the end of the line and then mails ...
0
votes
0answers
13 views

How do I use the mmv utility to move an arbitrary number of files?

I have a folder with too many files, I want to move some of the files to a subdirectory -- without a script. How can I move, or copy, not all files, but the only the first n number of files? For ...
2
votes
1answer
33 views

how to close/restart phpstorm from command line

The phpstorm is not responding and i want to kill the process. this is the location of instalation: /opt/phpstorm/PhpStorm-143.1770/bin. i cannot close it with the X button so please help me to close ...
0
votes
1answer
24 views

One single command to update everything in Ubuntu? [duplicate]

I know that there are three command to update and then upgrade the whole system, these are: sudo apt-get update # Fetches the list of available updates sudo apt-get upgrade # ...
1
vote
0answers
28 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
29 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
3answers
78 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
33 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
30 views

format old Linux version and install new one [on hold]

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
25 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
42 views

How to put a date as one argument [on hold]

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
7 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
17 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
20 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
24 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
31 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
21 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
147 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
13 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
33 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
34 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
222 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
12 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
14 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
17 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
33 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
38 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
20 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
23 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
42 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
30 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
18 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?