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

learn more… | top users | synonyms (5)

2
votes
2answers
72 views

Rename file which uses the first 2 letters of every word

I'm currently using a simple script for renaming: for f in *.mp4; do echo mv $f $RANDOM$RANDOM$RANDOM.mp4; mv $f $RANDOM$RANDOM$RANDOM.mp4; done But instead of using the $random, I would ...
4
votes
1answer
21 views

How can I transfer a binary file using minicom and a serial connection?

How can I transfer a binary file using a serial cable between my Ubuntu pc and a box where I've installed minicom? The minicom box doesn't have a connection.
4
votes
1answer
130 views

Delete lines in several files in a folder once (avoid infinite loop)

I have several files in one folder, and I want to delete the first lines in all of them. If I do this: sed -i.bak '1,2000d' *.dat the first 2000 lines are deleted, but then the filename is still of ...
1
vote
1answer
27 views

How to prompt the execution of a custom script after a task has been completed

I have created a script called checkrest and I have placed it with executable rights in the /bin directory. The script checks if a restart is required by an application, and if so, it checks which ...
0
votes
1answer
24 views

How to open a picture from Ubuntu server, via [SSH on] my laptop Macbook? [on hold]

I am currently using Macbook iterm2 for ssh connection to my ubuntu server. I am image processing via terminal and want to open the result. What whould be easist way of doing this?
0
votes
1answer
62 views

strange code appears in terminal

So I was trying to install openfoam on ubuntu 14.04 and there are two problems I need your help with. One, a strange code appears everytime I run the terminal(I've attached a picture of it). Two, I ...
2
votes
1answer
35 views

Is there a way to run a script every time I insert a usb modem?

I would like a shell script to execute each time I insert a USB modem. How would I do this?
1
vote
3answers
54 views

move all files except with extension [duplicate]

I have moved a tar.bz2 from my Downloads to /usr/src, which is where I like to put all things that I install on my system. Now I extracted the file and I want to move its contents to /usr/share/icons. ...
5
votes
4answers
476 views

Output only MAC address on Ubuntu

In Ubuntu, with command ifconfig -a, I obtain all the information about my ethernet/wifi interfaces. But I need to obtain as output only the MAC address, like: ab:cd:ef:12:34:56 57:89:12:34:ac:23 ...
-1
votes
0answers
27 views

how can create a wine shortcut? [duplicate]

i've recently installed wine and i often use the wine cmd so i would like to create a shortcut on the desktop to run directly cmd. I've tried to search on google but without any result. thanks.
0
votes
0answers
24 views

MY laptop is too slow!

I'm using Ubuntu 14.4 OS. It was performing good at the beginning but after a week of using, it becomes very slow and annoying actually. My laptop features: Memory : 3.0 GB Processor : Intel® Core™2 ...
0
votes
0answers
6 views

Tmux Signaling Events

I'm not sure if this is possible but here's what I have running on tmux. (Using tmuxinator or tmux same idea). This is my mux config: name: dummy root: ~/projects/dummy windows: - service: ...
1
vote
1answer
73 views

What is the command to open a specific directory in a new tab in nautilus?

I want to make a .desktop file that opens a folder in my default file manager in a new tab. To test if it opened the right location, I tried nautilus ~/*folder*. That opens my file manager, but it ...
0
votes
3answers
174 views

How to launch the Calculator through Terminal

I use the default Ubuntu calculator rather a lot, but to use it I have to use the Unity search feature to find it and then open it. I have tried to open it in Terminal with: calculator And: ...
0
votes
1answer
38 views

how to create my own command on shell Scripting [on hold]

can you tell me how to create a new commnand on shell Scripting? thank you
0
votes
1answer
18 views

discover if other users are executing the watch command on the machine in which MyOwnCommand is beeing executed

I want to know if there are other users that are running watch on the same machine in which command X is being executed. How can I do that?
0
votes
0answers
28 views

Unable to update or install packages from terminal

I am unable to update my Ubuntu 14.04. I tried these two methods: 1) Using the update manager : It starts downloading but after downloading some files/packages it says failed to download updates ... ...
1
vote
1answer
36 views

Run command on startup only after a certain time in day

I want to put into startup applications a command that will check from the system time on whether it is more than i.e. 17:00 hours and then depending on the result the command would execute another ...
0
votes
1answer
37 views

How to download torrents using utorrent on your browser (firefox)

There is method for downloading torrents without opening actual program using browser. I just go to open firefox type in https://127.0.0.1:8080/gui/ After it I go to terminal and paste a command ...
0
votes
1answer
25 views

Western Digital Hard Drive not showing the True Storage size after changing something with the Partioning in Ubuntu

I was trying to get back space from the hard drive since 32GB of it was free. This hard drive was used for my Macintosh Time-machine Backups.I have data stored on the non-viewable partition of this ...
2
votes
1answer
32 views

seq command with && operator wont work

I'm trying to make a for loop in bash where I make a beep of a particular frequency than is incremented until it reaches 500, then goes back down to 1. I'm using the "seq" command for this but I ran ...
44
votes
4answers
3k views

What does “apt-get install !!” do and how to make it work?

I have seen someone typing apt-get install !! He did that a few times and every time, a different program was installed. It seems like it automatically figured out what is needed next. However, ...
1
vote
1answer
22 views

Set default font-size in terminal

I just got myself a new 27 inch monitor and it is great. I can view things at a distance. However, when I launch the terminal, I cannot read things at a distance. And I want to increase the default ...
-1
votes
0answers
13 views

Ubuntu command line system installation [duplicate]

Anybody know how to install ubuntu 14.04 command line system from usb?
0
votes
1answer
31 views

Enter prints “^M” in the terminal

When I press Enter or Backspace in the terminal, I get this: Would you like to create one now? (yes/no): no^M^?^?^?^?^?^?^?^M^?^? What's up with this?
0
votes
0answers
18 views

System command QML runs executing only in Desktop Kit

Following another thread Run system commands from QML App, I wrote a program that calls command arecord. I only replaced some lines in Main.qml: ... onClicked: { var lista1 = ...
-4
votes
0answers
29 views

chkrootkit result, am surely hacked huh? [on hold]

/usr/lib/pymodules/python2.7/.path /usr/lib/python2.7/dist-packages/PyQt4/uic/widget-plugins/.noinit /usr/lib/jvm/.java-7-oracle.jinfo /usr/lib/jvm/java-7-oracle/lib/visualvm/visualvm/.lastModified ...
2
votes
1answer
98 views

Shell script with select command to show a list of files

I've written the attached bstls.sh shell script which uses the command select to choose the subfolder or file in a folder passed as argument on which execute the ls command. #! /bin/bash #Personal ...
1
vote
1answer
42 views

Printing from command line

Please can anybody explain what exactly these commands and options do: find /home/mike/Duck/ -type f -iname '*.txt' -print 0 | while IFS= read -r -d '' f; do lpr "$f" && mv "$f" ...
0
votes
0answers
22 views

Change lock screen background through command line

I'm interested in changing my lock screen background through the command line. I'm hoping to be able to do it such that, after I run a series of commands, the next time it locks that image comes up. ...
0
votes
0answers
18 views

Ubuntu sometimes freeze when changing from the CLI to the GUI

I am computing stuff with the GNU Octave in the terminal and want to check on its progress from time to time. Well, so why does my laptop (W650SZ) sometimes freeze when I change between the terminal ( ...
1
vote
2answers
15 views

How do I use tree to show the path to filenames containing a particular string?

I have got a rather large file system, and let's say that I want to find all the files and directories in a certain area of my file system which contain the String ActionListeener, and to do this I ...
0
votes
0answers
42 views

What are the things to be learnt in Ubuntu? [duplicate]

I am inspired by Ubuntu, and want to learn it, how can this be possible? Besides, what things do I have to learn in Ubuntu? And how are the specified tasks performed through the commands in the ...
0
votes
0answers
16 views

How would I be able to access the ppp settings through terminal [on hold]

I'm trying to open the ppp settings in terminal so I can try connecting my dreamcast through the DC to PC server and I got up to the point where I need to open the settings and each time I put Sudo ...
0
votes
0answers
46 views

How to add and pass system password as a variable in a script

I have a script which asks for system/login password and pass that password to further processing. This is the gist of programm by which I am executing my script. read -s -p "Password: " password1 ...
1
vote
0answers
11 views

If I know the ID of a Chrome Web Store Extension, can I install via terminal?

I know the ID of an extension I want to install - mdapmeleikeppmfgadilffngabfpibok but I'd like to install with the command line. Is this possible? I'm wondering if I could use wget to download the ...
2
votes
1answer
26 views

Change Folder/File Permissions for HIDDEN Subdirectories

This question is very similar to Change Folder & File Permissions for all Subdirectories , which worked for me completely when the folders weren't hidden. However, I have a hidden folder (call it ...
4
votes
1answer
71 views

How to execute a sudo script with double click

I have this script to shutdown my system after 30 seconds. I want to run this script by double clicking it (that option I changed in nautilus). This is the content of my script #!/bin/bash shutdown ...
2
votes
0answers
40 views

How to add flags and/or arguments to a command in the 'sudoers' file

How would I add flags and/or arguments to allow users in the sudoers file to run certain parts of commands, such as only allowing a user to run sudo rm and not sudo rm -rf? I am using 14.04. # # ...
0
votes
0answers
24 views

How do I download an email attachment in ubuntu terminal

So I'm new to linux still learning though. I've managed to set up a server to host a website and teamspeak server. The website (forums) automatically sends out emails if needed however I can't seem to ...
0
votes
0answers
7 views

Xubuntu 15.04: Can no longer navigate with Ctrl + left/right on MySQL shell

In previous versions of Ubuntu (and other Linuxes), I was able to jump word-by-word in the MySQL shell with Ctrl+←/Ctrl+→. This does not seem to work in 15.04. Instead I get ;5D (Ctrl+←) and ;5C ...
-1
votes
0answers
19 views

I can`t open the audio content of a CD

I inserted an audio CD in my unity, i tried to open the content or play with RhytymBox but the volume is not visible at all; Curious for me, if i open Disks option in Ubuntu(14.04) the disk is there, ...
0
votes
1answer
37 views

error in running bash script as root

I have a simple shutdown script which i want to run as root shutdown -h +30; echo "succesfull"; I have followed these answer1,2 to make my script root. first I run this command sudo chown ...
0
votes
1answer
30 views

How to maintain a counter across multiple executions of a script?

I have a script with a conditional statement and I want to find out how many times the then clause is executed, across multiple runs of the same script. eg: if [condition] then Some code; ...
0
votes
2answers
45 views

What is the difference in command-line “sudo apt-get update” and using Synaptic or Auto-updater?

The whole update process seems somewhat confusing to me. I can understand the need to run sudo apt-get update prior to installing another package, but, what is the difference in running update from ...
-3
votes
1answer
14 views

“STOP error reading namelist input_data in subroutine strtup” Linux Terminal [closed]

I would like your help. I am running a code in Linux. I have updated an input file to output using emacs. Then, when I am running the code I keep receiving this error. Please help. Thanks.
1
vote
0answers
28 views

Pixelated display after run “sensors-detect” [closed]

I have a Lenovo y50-17 laptop with Mint linux installed. I started by doing sensors-detect, which I've done on computers in the past. I know I should have stuck with the defaults, but I didn't. ...
3
votes
2answers
82 views

Certain commands not working for a user with sudo after adding to `sudoers` file

I cannot seem to allow the user (In this case Ruby) to run sudo rm -rf, sudo rmdir, or sudo mkdir. I have tried it with other commands and it works fine allowing that user to run sudo apt-get update ...
7
votes
4answers
533 views

Shebang line doesn't invoke perl

I am a new Ubuntu user, trying to run scripts developped on Straberry Perl on Windows 7. My Unbutu environment is Ubuntu 14.04 LTS and Perl 5.18.2. The first line of my scripts is #!/usr/bin/perl, ...
3
votes
2answers
125 views

Can alias command pass arguments?

I want to know if i can pass an argument with an alias command. for example: alias d="dmesg|grep -iw usb|tail -5" Now d will print the last 5 lines. if i want to use d to print a different number ...