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

learn more… | top users | synonyms (5)

0
votes
1answer
13 views

I can not remove blender

I want to install the new version of blender (2.75), but first I have to remove my old version of blender (2.74), I try to remove blender with this command: sudo apt-get remove blender but when I ...
1
vote
1answer
14 views

Bash completion for commands that start with specified letter?

Is it possible when I press Ctrl+r and after this, for example, press the letter a, then using the up and down arrow key to search only the commands in the history that start with a? Or if I type ssh ...
2
votes
2answers
23 views

7zip: How to exclude file types?

I want to exclude the following file types: epub pdf html (upper case too) azw3 mobi opf txt I have this so far which doesn't seem to work, i get an error saying "Incorrect Command Line". 7z e ...
0
votes
1answer
17 views

High values of cpu load

The system uptime command is returning values above 5... This is a high value right? What could be the reason behind this?
1
vote
1answer
42 views

Ubuntu phone Apt-get install not working

I have purchase the Meizu mx4 Ubuntu edition and I downloaded the Terminal application from the store. I wanted to try to install anything through the terminal but it's always the same answer: W: ...
1
vote
1answer
13 views

what-source (part of what-utils) returns package name two times

On my Ubuntu 14.04.2, what-source returns two times the package name for some packages, e.g. ~$ what-source openssl openssl openssl or ~$ what-source firefox firefox firefox Is this normal ...
0
votes
0answers
6 views

Terminal session message: unable to find PtrFeedbackClass — Ubuntu Mate 15.04

Running a fairly stock install of Ubuntu Mate 15.04 the following message started showing up each time I open a terminal session: Here is some xinput output: unable to find PtrFeedbackClass for ...
0
votes
1answer
23 views

Drop/Undo sudo privileges on .py file which runs inside a program which runs from sudo previleges

I need to run a program from sudo privileges and I am running .py file inside the program. So when my program runs from sudo then it automatically calls/runs the .py file with sudo. I am running file ...
0
votes
1answer
18 views

installation of wine

i was trying to install wine on ubuntu 14.04. I used the command sudo apt-get install wine. A complete process was worked out. Around 140 MB data was downloaded from the internet but suddenly it was ...
0
votes
1answer
14 views

Alias syntax for mpirun

I execute my jobs in terminal using: mpirun -np 4 lmp_fedora < in.stdinfile Now I want to create a permanent alias run so that I can just input the command: run < in.stdinfile from any ...
0
votes
2answers
29 views

How to skip a record with awk

I have a large number of files in a log-directory, whose names were time-stamped (in this case with date +%b[...]). I want to write a POSIX compliant one-liner that will: either skip lines output ...
0
votes
2answers
21 views

What to type in Terminal Gnome to understand what commands mean

Is there a shortcut key to list what each Help command in the Gnome Terminal means? I got it to list by accident but didn't know the key switch to slow down the list, I am guessing these are DOS?
1
vote
1answer
22 views

Error with #!/BIN/BASH MAC [on hold]

I am trying to host a unturned server, and I watched a tutorial on youtube. So that is what I wrote in textedit for the launcher of the server (a .command) : #!/BIN/BASH ...
2
votes
2answers
202 views

Command to list all users with their UID?

How can I list all users along with their UIDs? I want to do this from the terminal.
1
vote
1answer
16 views

execute python package to download a pdf file

i am new in python. please dont bore. i have a python package to download pdf file from a specific site. i can not execute this package. Please help me someone to execute the package. thanks in ...
0
votes
1answer
13 views

Bash Script for Dump Several Processes on Android Devices

I have created three bash script for dumping several processes that runs in the Android device. The first bash script: #!/bin/bash echo "adb forward tcp:8888 tcp:8888" adb forward tcp:8888 tcp:8888 ...
0
votes
0answers
9 views

impossible to run monodevelop

When I try to run MonoDevelop, I get this error: Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for MonoDevelop.Core.LoggingService ---> ...
2
votes
1answer
39 views

Alias and executable file [duplicate]

I have lmp_fedora executable file located in /src. I use this command: mpirun -np 4 lmp_fedora < in.stdinfile to execute the job. However it is only able to run if I copy lmp_fedora into the ...
0
votes
2answers
29 views

Changing Mode of Installer Not Working

I am trying to run chmod +x /path/to/metasploit-latest-linux-x64-installer.run in the terminal to mark the installer as executable, however I keep receiving an error: cannot access ...
0
votes
1answer
35 views

How to open new terminal by C code?

I am using ubuntu 14.04 and Qtcreator to complile a code. I am able to run a terminal by code system("/home/salman/find_location/start_yarp.sh"); But on the next line i have ...
1
vote
5answers
200 views

Check Software Version

I need to check the current version of VLC I have running, however I don't know where it is installed (can't see it in /etc or /bin). If I do vlc in a terminal then the application starts, but is ...
0
votes
1answer
26 views

Problem with File command (ERROR: cannot open 'whatever' (No such file or directory))

I'm currently using Ubuntu 14.04.1 LTS on both desktop and laptop. I've been using Ubuntu for a couple of years and recently took the courage to buy a book about commands in Linux, but I've found a ...
0
votes
0answers
15 views

Terminal window scales minimum on its own

Since the latest update of Ubuntu i.e. 15.04 Vivid Vervet, when I start my terminal and try to resize or scale using mouse, it snaps into minimum of its size. For instance, this is the default size I ...
0
votes
0answers
13 views

Aptitude vs Apt-get [duplicate]

Its 2015, and I am still programmed mentally to use Aptitude. Been exploring an authoratitive answer on wether I should finally go back to using Apt-get instead of Aptitude, or stick with my tried and ...
0
votes
0answers
14 views

NAS drive mounted but inaccessible via command-terminal!

thanks to these pages, I have managed to mount my three NAS drives by adding three more lines to the fstab file: volume1_on_d-link volume2_on_d-link shre-on-LS-WTGLF61 However, to my vast ...
3
votes
3answers
97 views

apt-file regex: escaping a dot

I want to find all packages which provide a shared object containing "ssl" in the file name. The apt-file manpage says: --regexp | -x Treat pattern as a (perl) regular expression. ...
-1
votes
0answers
14 views

Please help me with my extension [on hold]

I am creating a small gnome shell extension.For that I need to access the file tree of my shell,but it has to be done using Javascript.Can you please tell me the name of the module in Javascript for ...
3
votes
1answer
22 views

Extracting subfolders into a specific folder

I have a bunch of sub-folders with respective rar and 7z files. How do I extract all of these and tell the pipe to output to a specific folder?
3
votes
1answer
42 views

Xfce 4 Terminal how to wrap text

I used to use the default gnome-terminal as my default Terminal, but because I want it to be see-through I have switched to the xfce4-terminal. But there is one problem, the text does not wrap, and I ...
-1
votes
1answer
30 views

Use of quotes when running commands on a remote machine using ssh

I have a command that I know works correctly when I remote into a machine and run it. The command is below: grep "SearchTerm $1" file.txt | sed 's/^.*SearchTerm $1,//g' | sort | uniq -c | ...
1
vote
2answers
48 views

I just ran cat /dev/zero and now cat is hanging

I ran cat /dev/zero and it now just hangs whenever I run a cat command. I pressed Ctrl+C to stop that command. Have I broken something, and how can I fix it?
1
vote
1answer
38 views

BASH->Python (2.6) piping

I need to translate this line of Bash into Python: sample1=($(/bin/cat /proc/meminfo | egrep 'MemTotal|MemFree|Cached|SwapTotal|SwapFree|AnonPages|Dirty|Writeback|PageTables|HugePages_' | awk ' { ...
0
votes
0answers
15 views

How can i install and launch xmonad on ubuntu server?

I have started from a clean install. I have installed xorg and openbox, then xmonad via sudo apt-get install xorg sudo apt-get install openbox sudo apt-get install xmonad but i can't get it to work. ...
0
votes
0answers
16 views

How do I enable desktop notifications, including audio, of when terminator is finished executing commands?

I know that on Fedora you get popups and audio notifications that appear whenever a command has finished running in GNOME Terminal. I was wondering if something similar was possible on Ubuntu in ...
1
vote
2answers
31 views

How can I convert mp4 and mkv to 3gp?

I've a directory with 28 mp4's and 2 mkv's. I want to convert them all to 3gp using avconv. How do I do that?
0
votes
0answers
21 views

How to restore the default factory name of my device?

I had change my device name, and I would like to get back to default name that comes when I buy it. I know how to change the name by command-line, but is there a command to restore the device name to ...
0
votes
2answers
66 views

Shell script options with parsing arguments

I have the shell script CONTROLLER_IP="" if [ "$#" -eq 1 ] then CONTROLLER_IP=$1 else echo "Usage : create_endpoint.sh --controller-ip <Controller IP>" exit 1 fi but its executing ...
0
votes
1answer
31 views

how to write c program code to display directories in linux terminl [on hold]

i want a c program to get all the directories from bash terminal.also i need to color different types of files in different colors. eg:-executable files should b displayed in green color, ...
3
votes
1answer
45 views

.desktop launches app with custom icon. why not shell?

I have a .desktop file that launches an app, and it uses the .desktop icon: [Desktop Entry] Name=My Ro Type=Application Comment=Web Application Exec=/path/to/myapp -test Icon=/opt/giteye/icon.xpm ...
1
vote
1answer
16 views

Problem with Comodo Installation

After installing Comodo, though logged in as adminstrator, tried to run /opt/COMODO/post_setup.sh and it says Please run this script with adminstrative priviledges even though I am logged in as ...
0
votes
1answer
46 views

How to execute the tar file without any error? [on hold]

tar (child): ushare-11a-netou.tar.bz2: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now ...
1
vote
7answers
503 views

Remove duplicated dots from file name

I have a dir with tons of files inside which have been named in malformed such as file..txt ,file2..txt ,etc... So how to easily remove this second . from file names? Any applicable method is ...
1
vote
0answers
34 views

Accessing root files on Ubuntu Phone from my eOS based on Ubuntu. [duplicate]

I'm wondering if its possible to access the root files on my Ubuntu Phone E5 from my computer. I know I can access them from the terminal on the phone but its not ideal using that touchscreen to ...
0
votes
0answers
37 views

Script for Opening Two Terminals and Execute Three Consecutive Commands [duplicate]

I intent to open two terminals and execute three consecutive commands in bash script. Basically, the first terminal will execute first command, second terminal will execute second command, and back ...
1
vote
5answers
47 views

Ubuntu 14.04: New user created from command line has missing features

I am trying to create a new user in Ubuntu 14.04 LTS from the bash command line. I use the following commands: sudo useradd -c "Samwise the Brave" sam sudo passwd sam Enter new UNIX password: ...
0
votes
3answers
71 views

Use of the Rename Command

I have a two part question. I have a series of files with the names "file.pdb.#", where # is an integer. 1.) How can I script to rename all the "file.pdb.#" to "file_#.pdb", where the integer is ...
1
vote
1answer
19 views

Execution error with .so file

When running a server and trying to connect to a web socket I have an execution error: ./cameraserver: symbol lookup error: ...
1
vote
2answers
28 views

Missing argument to -exec

This is the command I'm entering. find /home/things/backups -mtime +0 -exec echo "{}" >> /home/things/logs/backup.log \; -exec echo "Hourly rotate successful: $(date). {} was deleted." ...
0
votes
0answers
34 views

What is wrong with my code so far? [closed]

I'm attempting to make a DNA translation script in bash that will take an input file, iterate through the file, and convert every three characters into the proper protein code it corresponds to. Thus ...
2
votes
1answer
33 views

How can I be sure “apt-get install” successfully finished its work?

I have Ubuntu 14.04 and I intend to download Skyrim. So I put the command into the terminal sudo apt-get install playonlinux. Everything was loading fine and it seemed to be working, however before ...