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

learn more… | top users | synonyms (6)

0
votes
2answers
51 views

find all '&' characters in files and folders

i have a Ubuntu server with samba file sharing. i want to find all files and folders that have '&' in their name an replace it with 'and'. can any one help me on this situation. thank you all i ...
0
votes
0answers
10 views

login on shell with multilingual password

I have tried to find a solution but of no avail. I keep a non-latin password (hindi language) for my ubuntu login. It works great for graphical interface. However, I can't seem to find a way of typing ...
0
votes
1answer
16 views

swapping keyboard using alt+shift [duplicate]

I need to know how to swap between languages in Ubuntu 14.04.3 using command line .
0
votes
0answers
26 views

Conditional shell script execution on NAS

I've got NAS, more specifically QNAP TS-251 running Ubuntu (but kind of modified one - it doesn't have terminal). Since none on QNAP forum was able to answer me, I've decided to create a post here. ...
0
votes
0answers
20 views

How can I make a script wait for the XServer before running?

I have created the following script: #!/bin/bash   exec 3>&1 4>&2 trap 'exec 2>&4 1>&3' 0 1 2 3 exec 1>/home/diet/1_auto_update_script.log 2>&1 ...
1
vote
0answers
39 views

Ubuntu 15.10 update-motd.d not affects the MOTD

I added a new file 80_own-motd to the /etc/update-motd.d directory on my Ubuntu 15.10 Server. #!/bin/sh echo ">>>>>>Welcome to my Ubuntu ...
-1
votes
1answer
49 views

bash: /home/trotteville/root/bin/thisroot.sh: No such file or directory

I know there are some similar questions in here, but I want to know how did this occur. The Terminal started displaying this after I deleted a folder named root in my home directory, but I assumed ...
0
votes
0answers
20 views

issues with make title

I am using TeXmaker in ubuntu 14.04. I have a tex file.But when I compile it to get out put it is showing Metric(TFM) file note found. It shows error in each of the steps in \maketitle,\textit{}. ...
1
vote
1answer
50 views

running a command for fixed time and getting output in a file

I want to run a command for fixed time and get the output in a file. getting output to a file can be done using command > file and restricting a command to run only for fixed time can be done by ...
1
vote
1answer
23 views

APT - how to install recommended packages after installing with --no-install-recommends switch?

I installed a few packages with APT using apt-get. I used the --no-install-recommends switch with it to save some disk space. Now I need to know: how do I install the recommended packages for the ...
0
votes
0answers
18 views

Help With Default Terminal in Xubuntu

Whenever I compile and run a program, the terminal displays the output right before my user credentials as shown in the picture. The highlighted part is the output. Is there any way I can make this ...
3
votes
1answer
22 views

View size of CPU cache through the command-line?

How do I view the size of my CPU cache using the command-line? I want to view information on L1, L2 and L3 cache. Also, would it be possible to ouput only information on cache, so that all other ...
22
votes
4answers
1k views

Where is “uname” pulling information from?

Where is uname -i pulling the information from? Do the details exist in /etc/? Do the details exist in /proc/? If so, which file is it referencing to output those details?
1
vote
0answers
21 views

Eclipse installation question - .desktop file

Another noob question trying to install Eclipse as per How to install Eclipse? that is following right up after this question: Eclipse installation process - initial "sudo mv eclipse /opt" ...
1
vote
1answer
25 views

Can you explain eval expression in the default .bashrc

I was looking inside /etc/skel/.bashrc and found this line: [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" I understand what the test -x does, but everything onward with eval ...
1
vote
1answer
25 views

How to set LC_NUMERIC to English permanently?

I need to change LC_NUMERIC to English (I have Ubuntu in Spanish) because of the dots and the commas, but if I use LC_NUMERIC="en_US.UTF-8" when I exit the terminal and I open it again, LC_NUMERICis ...
0
votes
1answer
28 views

Possibly something wrong with my terminal

Whenever I open my terminal I get something like this: alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e ...
-1
votes
2answers
52 views

How to open something cmd like? [duplicate]

I'm new to Ubuntu and I need a command line to follow a tutorial. How to do this? I already tried searching for cmd but failed. Any one knows? Please help me.
0
votes
1answer
22 views

Permission denied when using bundler commands

I am pretty much completely new to Metasploit so I may just be having a problem that anyone who is experienced could fix but I hadn't seen any fixes online anywhere. I am running msfvenom -p ...
1
vote
1answer
43 views

How to reclaim lost GUI/window

I'm now facing this situation: I'm running several Matlab instances on a computation server (server OS: Xubuntu 14.04, my local machine OS: Ubuntu 14.04). I used NoMachine to connect to the server. ...
0
votes
1answer
43 views

Can I run Blueman from Command Line

Is it possible to use the command line to connect to a recent connection of the blueman-manager? The applet has the connection I need saved under "recent connections". Instead of using the mouse to ...
3
votes
4answers
612 views

How to find the number of CPU cores including virtual?

How do I find out the number of cores my CPU has, including virtual cores (hyper threading cores) using the command line?
0
votes
1answer
42 views

File got deleted when moving to parent directory

In Terminal, the working directory was set to /mnt/qq/iso. I wanted to move a file from this directory to the parent directory qq, so I entered: mv -v boot-repair-disk-64bit.iso ../ Instead of ...
0
votes
0answers
16 views

Changing audio effect automatically

Can we change audio effect automatically(in a interval) while playing song? for example "Full bass" -> "Rock" "Rock" -> "Soft" picture is from vlc extended settings for changing audio effect manually ...
0
votes
2answers
41 views

How to launch a Chromium app from the terminal?

I've installed the text editor Text as a Chromium application. My usual approach to opening the editor is to use the menu options provided by the GUI. How can I launch the editor using the command ...
1
vote
0answers
10 views

image sizes width and height in file explorer - how to view

I have a bunch of different sized images in a folder. I would like to sort the images by widthXheight and then copy some to another folder using a file explorer. (In this case i want to move all my ...
0
votes
2answers
46 views

Ubuntu commands [duplicate]

I am working on my skills with ubuntu and looking at moving off windows and mac. like to see if anyone has a command-line listing or cheat sheet for ubuntu? I have worked with Ubuntu in the pass and ...
-1
votes
0answers
19 views

mouse in terminal - windows/putty like [duplicate]

Now to case, since i'm new to be using ubuntu as a base system it literally kills me to use right button to copy well not even copy but copy/paste at one time. Could someone explain me please howto ...
0
votes
3answers
62 views

Command 'ls' showing directory size instead of block-size

Is there any ls parameter which I can use to display file-size for directories as well. When I do ls -s, it shows me block-size(4k always) instead of directory size. Thank you!!! Edit - Partial ...
0
votes
0answers
23 views

All users files disappeared in ubuntu 15.04

I have 15.04 ubuntu. I had so many working files in my home and I had installed many libraries. Next day when I open my pc everything disappeared. It looks like a fresh installed system with all ...
0
votes
1answer
36 views

sudo ssh-add /root/.ssh/id_rsa return error

I m trying to save ssh authentication with the command ssh-add for sudo usage: linux$ sudo ssh-add /root/.ssh/id_rsa Could not open a connection to your authentication agent. but as indicated it ...
0
votes
2answers
114 views

convert txt file to csv seperated with tabs

Sorry people I'm new to Linux, and while I looked through the list of answered questions, I don't know enough to recognize if my question was answered. Or if I can adapt one of the answer to my ...
0
votes
0answers
17 views

YAML Error when running juju quickstart

I've seen there was a bug that was fixed in a previous version, but it appears I'm running into something similar in juju version 1.24.7 as well. I've added maas config to environments.yaml, but keep ...
0
votes
1answer
32 views

batch “convert” into jpg with nice alpha flatten

I would like to batch resize and convert to jpg a few png files. But some pixels are transparent, and some are half transparent; I would like the transparent ones to be white, and the half-transparent ...
2
votes
3answers
385 views

Isn't sudo extremely unsecure? [duplicate]

It seems any program ran soon enough after sudo in the same terminal can run any sudo command it pleases. Proof: Execute sudo ls in a terminal . Then run this program (compiled of course) in the same ...
-1
votes
0answers
35 views

bash: /usr/share/virtualenvwrapper/virtualenvwrapper_lazy.sh: No such file or directory and bash

bash: /usr/local/bin/virtualenwrapper_lazy.sh: No such file or directory Is showing up each time I start the terminal. I installed virtualenvwrapper, by using: sudo pip install virtualenvwrapper ...
0
votes
0answers
32 views

which dependencies am I missing for Corsair water cooler Link driver?

I'm attempting to install an open-source linux driver for my Corsair h100i GTX water cooler. I'm following these instructions. Once I run the script or try to change setting through terminal I get ...
-1
votes
0answers
45 views

Copy multiple folder and overwrite

i have two folders: /test1/film1/filmnew.mkv /test1/film2 /test1/film3 /test2/film1/filmold.mkv /test2/film4 /test2/film5 Now i want to copy all folders from test1 to test2. If the folder not ...
0
votes
1answer
34 views

How do I run an executable in a directory I added to PATH?

I added a directory to my PATH by doing PATH=$PATH:~/Documents/Clang but when I type ./clang, Bash says No such file or directory. Why is that?
1
vote
1answer
20 views

When does script invocation require path/script.sh

I distinctly remember reading that when $PATH does not include the working directory Linux script invocation requires the path even if the path is ./ and so the script invocation is ./script.sh ...
0
votes
1answer
18 views

Why can't my non admin users use mlocate command?

I have a node.js software agent running on 14.04 not able to run many of his bash scripts on a new server. The problem I seem to have is the limited user returns nothing from the locate or mlocate ...
1
vote
0answers
31 views

Are there any basic templating preprocessors that I can use for nginx configuration files?

I've been using nginx variables to simplify my templates for a few years now. It turns out this is apparently a "rather slow" way of doing things and that my static configuration should be static. ...
3
votes
2answers
128 views

ies4linux installation is failing

Unfortunately I need to install and use IE...I'm using that guide given here. But from terminal when I try so launch using ./ies4linux I always obtain this error: The program 'ies4linux-gtk.py' ...
4
votes
3answers
185 views

How to start or kill tasks when the core temperatures goes above/below a specific value?

I would like to write a short script that gets launched manually once and then should: run a command if all temperatures are below x °C. pause the command if any temperature rises above y °C. ...
0
votes
1answer
21 views

rsync without deleting between 2 folders

i'm looking for a command that can sync dir1 and dir2, without swapping and deleting the files in those directories. The current command i'm using is rsync -av --delete dir1 dir2 which deletes ...
0
votes
1answer
33 views

How to copy clone folder to remote computer in one line?

I have two machines with the same folder structure. One is my personal computer, the other is a remote computer. Sometimes I want a program to run on the remote computer. At the moment I always need ...
-1
votes
2answers
84 views

How can I fix this update error [duplicate]

W: Failed to fetch http://ug.archive.ubuntu.com/ubuntu/dists/trusty/restricted/source/Sources 403 Forbidden
-2
votes
3answers
38 views

What is the difference between “sudo rm ~/.bash_history” and “rm .bash_history”? [closed]

What is the different? sudo rm ~/.bash_history Also, this! While I am in the home dir. rm .bash_history
3
votes
2answers
28 views

Parametric command line player

I am looking for command line mp3 or ogg audio player with ability to play section of file, like: .... playfrom=145s playto=185s .... The aim is to listen just the interesting part of audiorecording. ...
4
votes
2answers
305 views

How to start nautilus maximized from command line?

I can easily start Nautilus on a particular directory from command line: nautilus /home/nico/Documents But I want that Nautilus window to be maximized. How to write the command line? nautilus does ...