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

learn more… | top users | synonyms (5)

2
votes
2answers
711 views

How to run a python definition inside a .py file from the shell?

My function sits inside a .py file with the very same name as the function: emp@emp:~$ python ~/Dropbox/emp/Python/stromkosten_pro_jahr.pyempedokles@empedokles:~$ stromkosten_pro_jahr(20,3) bash: ...
0
votes
4answers
6k views

how to find a word in text files from a directory [duplicate]

Suppose that I have a directory with name _file and includes two sub directory like _1 and _2 and on each one I have some text files. I want to search a word like foo in one of these text files. How I ...
0
votes
0answers
24 views

Error in installing ssh via apt to my system [duplicate]

when i was attempting to install the ssh via apt to my host system, the following error occurs. Reading package lists... Error! E: Encountered a section with no Package: header E: Problem with ...
3
votes
4answers
964 views

Find files with a specific 2-line pattern using awk

I have a few hundreds of files that has this pattern @<TRIPOS>ATOM 2 H18 65.2220 Du 1 RES1 0.0000 @<TRIPOS>BOND 1 3 5 ar @<TRIPOS>SUBSTRUCTURE among them, some of the files ...
0
votes
1answer
4k views

Lubuntu updating via the command line

To update Ubuntu, I periodically use apt-get update and apt-get dist-upgrade. Is this or is this not advisable for Lubuntu on a low-spec machine (single core 2.66 GHz, 1GB memory)? Will use of it ...
1
vote
1answer
64 views

What does Ubuntu use for getting/setting the time?

There is a way to change Ubuntu's system time in the GUI Date & Time Settings, however, as with most tools, I'm assuming that is just a front-end for one of Ubuntu's command-line tools. What ...
0
votes
1answer
69 views

Repair filesystem permission

I accidentally executed sudo chmod -R 777 / I was actually trying to change a specific folder permission recursively, btw i did stop the command before it changed everything. But now, i can't ...
1
vote
1answer
338 views

Startup script can be run multiple times despite pid file

The reason I'm doing this script is because I want to daemonize supervisord: right now I'm in a cloud host in which I don't have access to the /etc or the sudo command; this script is my best attempt ...
1
vote
1answer
147 views

How to create shortcuts using the terminal [closed]

I know the easy way using the unity but is there a way to make a shortcut for chrome for example using the terminal.
11
votes
2answers
19k views

connect to wifi from command line

Other posts seems to be addressing more complicated network connection issues from the command line. The Unity panel Network indicator/button doesn't respond too well sometimes - it keeps trying to ...
1
vote
1answer
113 views

Is there any way to echo an ssh session to a local terminal session

I am starting a server via ssh from various locations, and i want the terminal printout to be able to be viewed locally on the server, is there any way to do this?
0
votes
0answers
34 views

“allow executing file as program” not working on 14.04 [duplicate]

I have two fresh 14.04 installations and I replicated this bug on both stations: 1- Open gedit and type #!/bin/bash echo "Hello world" 2- Save as "test.sh" 3- Right click on test.sh, tick the ...
1
vote
0answers
127 views

How to solve this error: cut: write error: Broken pipe [closed]

I am a first ubuntu user and installed the SoftSearch tool and then execute the tool by using two commands: samtools index Small_test.bam perl ./SoftSearch.pl -b Small_test.bam -f chr1.small.fa ...
1
vote
0answers
119 views

How to simulate mouse clicks without installing any packages?

I am looking for a way to simulate mouse click at the same position like 10 times per second. I know this can easily be achieved using xdotools but I am currently on a machine without the possibility ...
1
vote
1answer
1k views

Disable all Unity keyboard shortcuts using the command line

I would like to know how I can disable ALL keyboard shortcuts via the terminal. I know you can disable them by going to: system settings>keyboard>shortcuts but I want to disable them via terminal. ...
0
votes
1answer
155 views

Is there any command similar to qlmanage in Mac OS?

Is qlmanage command is present in Ubuntu? Or is there any similar commands?
1
vote
0answers
23 views

Print application version using terminal [duplicate]

Just out of curiosity, Is there any terminal command that prints out the version number of any application that is installed? For example, the version number of wine?
3
votes
2answers
40 views

Turn off colour while using script(1)

Is there a way to turn off colour while using script(1)? My script file is being filled with unnecessary information regarding colours from commands such as ls. This information is only visible when ...
1
vote
1answer
138 views

Wine explorer on specific prefix?

I’m trying to open the explorer.exe from wine through the terminal. When I try to open explorer.exe via a gui It crashes but I can open from the terminal. Now the issue is that I have two wineprefixes ...
3
votes
1answer
81 views

Do something if a program is running

Is there something you can type into terminal so that it will run a command if a certain program is running? For example, if <Libre office is running> then sudo pkill <Libre ofice>. ...
0
votes
1answer
103 views

Is there a way to see the commands that would be executed based on /etc/network/interfaces stanzas?

The stanzas in /etc/network/interfaces translate to certain commands to bring up or down an interface and configure it. Is there a way to see which commands it translates to (similar to set -x in a ...
0
votes
3answers
25k views

MATLAB R2014a on Ubuntu 14.04 Install Issue

I am trying to install MATLAB R2014a on Ubuntu 14.04 LTS. I download the .iso file (from my University) and mount it using Disk Image Mounter. Then I open a terminal, switch to the directory where ...
3
votes
2answers
211 views

Is it possible to define a list in the terminal?

Since it is allowed to do a=5 ; echo $a, I was wondering whether or not it is possible to declare lists and other data structures (such as tuples, dictionaries) in the terminal? And if so, are they ...
1
vote
1answer
247 views

Reboot always redirects to initramfs shell

I installed Ubuntu 14.04 on Dell PowerEdge 2800 RAID Controller 4e/Di (with 6 hard drives, I chosed RAID5). I encrypted the disks using LUKS (cryptsetup). After installation, each time I reboot the ...
3
votes
4answers
2k views

How to replace spaces with newlines/enter in a text-file?

I have simple text file named "example". Reading with terminal command: cat example Output: abc cdef ghi jk lmnopq rst uv wxyz I want to convert (transform) into following form: (expected output ...
5
votes
1answer
108 views

How to get the tags for the installed software in ubuntu?

I can retrieve the softwares using the dpkg command but is there a command to get the associated category for the software . For example if I have Firefox installed can I somehow retrieve a tag for ...
3
votes
1answer
3k views

gnome-session-quit to logout does not work when run as root with sudo

I am running Ubuntu 14.04 and user name is pandya. pandya@pandya-desktop:~$ gnome-session-quit When above command run without being sudo (sudo su) in terminal, it successfully logs out. But ...
1
vote
1answer
74 views

Why does this command keep popping up when I open my terminal [closed]

Here's an image of the problem: It says "adds" or something. Is there any way to get rid of it? Also im using UXTerm but it happens in all other terminal
0
votes
1answer
55 views

Shell script backup routers

Below is a script I've wrote to backup my routers and adsl modem, Any ideas to compact this script in less lines? Each router have a different kind of structure as you can see. #!/bin/sh ...
0
votes
2answers
236 views

How this command works

i see this command on other forums as a question for registering "date -u +%V$(uname)|sha256sum|sed 's/\W//g'" i think it depends on the time of my PC witch change every second .. but the output ...
0
votes
2answers
799 views

Find specific word in all files in and beneath current directory

I want to find all files, and print the path and filename, for any file where the text "Numlock" is used - whether it is lower-, upper- or mixed-case. What command should I use ?
2
votes
3answers
2k views

“ bash: /usr/bin/mint-fortune: No such file or directory ” - Ubuntu 14.04

Previously i used LMDE on my laptop, but now I moved to Ubuntu. I might have been a little bit rough with it, because I’ve simply format / partition, and installed Ubuntu on it. Home folder was ...
-1
votes
1answer
71 views

Where can I find the sudo commands to work on the ubuntu grub file?

I am a newbie and need help with the sudo command. I am trying to edit the grub.cfg file via the etc\default\grub. The problem is that I don't know the sudo commands, particulary, the permission ...
0
votes
1answer
28 views

Users logged in but can't see them

I am just starting with linux commands, so my question might sound incredibly stupid. I am studying the command line, yesterday I was creating and deleting users. When trying to delete a user (bart) ...
5
votes
5answers
25k views

Using Terminal as a web browser [duplicate]

I've found that terminal can be used for various purposes. This will be great if I can use it as a web browser. Is there any way to use it as a web browser??
1
vote
1answer
150 views

lxterminal prompt unwanted characters

I'm on fresh Lubuntu 14.04 installation. I am using LXTerminal and this is the prompt I'm setting through .bashrc file: export PS1="\e[0;36m$ \w \e[m" Assume I enter a command up to 15 characters ...
1
vote
1answer
1k views

Why isn't my Upstart script running on 14.04?

I have the following Upstart script saved as /etc/init/automount.conf: description "SOME DESCRIPTION" start on startup task exec mount -t vboxsf WebApps -o rw,dmode=777,gid=GROUP_ID,uid=USER_ID ...
6
votes
1answer
803 views

Show keyboard layout chart from command line

I'm looking for a way to display the current keyboard layout chart from the command line. Unfortunately xkbprint does not display utf-8 characters correctly (AFAICT). In gnome, it is possible to ...
0
votes
2answers
79 views

How can I go back to command line? [duplicate]

When I run ipython notebook or gedit in Terminal, the command line does not appear and it stops somewhere. How can I go back to command line mode?
0
votes
2answers
72 views

Why standard output is not printed on command line? [closed]

I'm new in programming. I run simple C++ program, like this: #include <iostream> int main(int argc, char *argv[]) { std::cout<<"What?";} by using the terminal by typing g++ Program.cpp. ...
6
votes
4answers
7k views

How to know if the running platform is Ubuntu or CentOS with help of a Bash script?

I know the commands to check the name of the Linux machine running on my machine. For example: Ubuntu cat /etc/version CentOS cat /etc/issue How do I get the output from the terminal and ...
0
votes
1answer
1k views

Cannot access USB drive - non-zero exit status 32: mount: unknown

I am trying to access my FAT32 USB drive. There is an error when I try accessing it. I just want to access it read-only. The error I get is: Error mounting /dev/sde at /media/mink/34D2-84FB: ...
2
votes
2answers
273 views

an example of when we need yes command

what is the usage of yes command . I follow the man yes also I try that but I want to know when we need to use this command You can follow man page to know the usage of yes. But I am looking for a ...
-4
votes
2answers
11k views

Whatsapp Help for Ubuntu 14.04! [duplicate]

Hey i have found a way to use Whatsapp on ubuntu using Pidgin! But i don't understand everything on the site... Can someone help me? I have completed the pidgin installation and whatsapp plugin. Now ...
1
vote
2answers
110 views

How do I access the command prompt in Lubuntu?

I have managed the task of loading Lubuntu into a partition of my ThinkPad T41, and am so far very happy with it. I have learned that there is a driver available for my old scanner, but apparently it ...
0
votes
0answers
9 views

audio track framerate 25(PAL)-->23,976(NTSC) [duplicate]

here's my problem: I need to change the framerate of the audio track of one of my films from 25 to 23,976 fps (to mux it with a full hd version); I used to make use of handbrake, re-encoding the film ...
0
votes
1answer
1k views

Unpack a war file to a destination folder without verbose output

i need to extract a war file with unzip without verbose output i am doing it like this - unzip myFile.war -d /home/app/ but this creates verbose output. How can i prevent that ?
2
votes
1answer
238 views

Deleting files by way of the terminal where files have a certain keyword

UPDATE Status of the process for the command rm -rf ~/.local/share/Trash/files/ has been set to Very High. Command was initiated at 0745 today and is still running. CPU Time is current 53 seconds at ...
1
vote
1answer
141 views

Hebrew font in Terminal ubuntu 12.10

I have files on usb DOK that I can't accesses since the folder name is in Hebrew I use Ubuntu 12.10 ll /media/user/KINGSTON drwx------ 16 user user 8192 Apr 28 16:40 ??????????/ ll ...
0
votes
2answers
82 views

How to a show the disc usage by directory in my home directory using the Terminal?

Could someone let me know which tool I should use? I'm trying to run this on an Ubuntu Server VM. So I believe I need a tool such as discus.