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

learn more… | top users | synonyms (5)

0
votes
0answers
9 views

Keyboard layout related issue - fixed in GUI but receive error in terminal

I run on Ubuntu 14.04. I have an issue related to the keyboard layout in GUI mode. I managed to fix it in the GUI by using: setxkbmap -layout us [1] and adding it to the ~/.bashrc. That works fine. ...
0
votes
0answers
18 views

Bash script environment can't get exported variable from user

I have a user daniel, from which I'd like to retrieve an exported value as root. So I did some research and came up with this command: $ su - daniel -c '. ~/export_script; echo $EXPORT_PATH' > ...
2
votes
2answers
163 views

I need regex(7)'s manual, but man command shows regex(3)'s manual

I understand there are many manuals (which are displayed by man command) in Ubuntu that has same names and are distinguished by a number. For example there is regex(3) and regex(7). If I type man ...
0
votes
0answers
7 views

How do i make a live usb for ophcrack from terminal?

I am having trouble creating a live usb for ophcrack using unetbootin, how would i create a live usb for this software from the terminal. Any suggestions? Thanks for your all your help.
0
votes
0answers
8 views

running and printing reversible circuit in terminal

What is the command used for printing the reversible circuit from reversible library to open terminal? i have installed the reversible kit, after installation i am unable to view the reversible ...
0
votes
1answer
16 views

sed : difference between “ sed 's/\-.*// ” & “ sed '/\-/s/\-.*//gw ”

I am learning few simple sed commands and I have gone through few practices. Command #1 sed 's/\-.*//gw witout' tgs.txt Command #2 sed '/\-/s/\-.*//gw with' tgs.txt Output #1 $ cat with 2. ...
0
votes
0answers
18 views

Creating Bootable USB from Mac

I am Macbook user and I am on current Yosemite OS X. I followed the directions provided on this http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-mac-osx ... however I get errors. ...
0
votes
1answer
50 views

Code works in Terminal, but not when in a script

I have: This is my zip file.zip in path $dec If I manually copy this code over to the terminal window, I get the correct output. But, if I take the same exact code and put it into a .sh file and ...
0
votes
2answers
24 views

Listing certain contents from a site in the terminal

This was one of the 12 problems in my practical exam today . For the first part of the task, we were supposed to list the contents of the first page from http://slashdot.org . I used lynx for this ...
0
votes
1answer
24 views

Ubuntu 14.04 pyenv command not found

Pardon if already duplicate but I tried combing through the forums but it seems I can't get anywhere. I am trying to install pyenv in Ubuntu 14.04 by doing these steps. INSTALL PYENV DEPENDENCIES ...
0
votes
1answer
36 views

Timer to shutdown

I just installed Ubuntu 14.04 on my Intel NUC DN2820. And almost every night as I lie down to sleep I listen to music, and my NUC shuts down (On Windows). On Windows it has the easiest command ever in ...
1
vote
1answer
22 views

Differences between md5pass and md5sum

This question may be insane ,but due to definition of hash algorithms, hash algorithms are some kind of functions that accept variable length input and make it encrypted and the output always has a ...
-1
votes
2answers
28 views

run python program from command line in python [on hold]

I have installed GNome in through VMware for learning Python i wanna know how to create , edit and run any python program from command line. I also wanna also know about how to do the same for c or ...
0
votes
1answer
24 views

Problems with Software Center and Terminal

Here's the problem. When I open Software Center it's black and closes after few seconds, can't do anything. And the problem with the terminal: sandro@sandro-E6224:~$ sudo apt-get upgrade [sudo] ...
0
votes
0answers
46 views

IF statement not traversed correctly in script responsible for unpacking zip files

I've been working on an IF statement for a couple days now and have been unsuccessful at getting it to run correctly. All of the embedded code seems to work when I manually paste it in Terminal, but ...
0
votes
0answers
13 views

I can only send emails to gmail accounts with exim4

When i write this in the terminal, a email should be sent to the email-address i send it to: echo "Content of email" | mail -s "Subject" user@example.com If i send it to my own gmail account, it ...
0
votes
0answers
15 views

Need some cheat sheet or tutorial site for Linux [on hold]

I am beginner in Linux. I need Cheat sheet of commands like Linux Commands cheat sheet So I can learn easily Linux and also need some tutorial site name for beginner. Thanks
1
vote
5answers
35 views

Creating command history list

Is there a way to display a list comprised of the last n terminal commands made by a particular user ?
2
votes
1answer
141 views

All files become hidden in Nautilus file manager

When I cd to a directory via Terminal and when I create a file every time via terminal, the file is not shown in Nautilus. But when I put ls command, I can see the files on Terminal. But I cannot ...
2
votes
1answer
36 views

cp Cannot Stat '-r'

Strange issue, for some reason, when I'm running a copy command, it's treating the -r flag as an argument. sudo cp –r usr/* /usr The following is the error: cp: cannot stat ‘–r’: No such file or ...
0
votes
0answers
16 views

apt-get update error(core dumped)

Someone please help here. I get this whenever i try sudo apt-get update/intall . * stack smashing detected *: apt-get terminated Aborted (core dumped) What could be the problem. i am using ubuntu ...
-1
votes
1answer
27 views

How to combine ls and grep to list only files and using ls to count dirs

I have some troubles with combining ls and grep. The thing is that I have to use only ls and grep to list all files in home directory. Ive tried multiple of combinatnions but with no effect. I think i ...
0
votes
2answers
45 views

Find folders of size lesser than x and delete them

I want to find all folders (within a folder) which are less than 100mb large and delete them. I actually don't want to use a bash script. But probably there is some neat one-line-loop possibility to ...
-1
votes
0answers
54 views

The program 'sed' is currently not installed. You can install it by typing [on hold]

I was trying to create my own program in the /usr/local/bin. During the process I messed something up and now anytime I press enter or type anything in the command line, I get this stupid ...
-1
votes
0answers
26 views

Opening a scoket in Kali linux using bash scripts trouble [on hold]

I know who to open a TCP or UDP socket in Ubuntu, by the following command : exec 3<>/dev/tcp/google.com/80 (for example) we can open a TCP socket on port of 80, but in Kali Linux there's no ...
0
votes
1answer
23 views

Stuck at GRUB menu

I feel really dumb saying this... Thanks to the help I received on this forum, I finally fixed my Wine/Pipelight issue and could finally upgrade from 'Trusty' to 'Utopic'. To clean up extra files, ...
2
votes
2answers
18 views

Command to cycle displays in Xfce

One can change displays in Xfce from GUI by choosing between Laptop Mirror Displays Extend to the Right Monitor Is there a command to cycle between these options? - so that I associate it to a ...
0
votes
0answers
25 views

how do i achieve executing a python script ON TERMINAL via a shell script in nautilus folder by the right-click>Script way?

Using nautilus i am writing a script which will run the python script which invoked it. So to run a python script i just need to right-click on it>goto scripts>select appropriate script and it will ...
0
votes
0answers
24 views

Did not use SHIFT-DELETE nor rm but files on Desktop are deleted

I have not used shift-delete nor rm but files on Desktop are deleted in ubuntu 14.04 LTS. My ~/.bash_history file also has no log of using rm command. However I have used sudo modprobe hfsplus. Is ...
1
vote
1answer
21 views

PATH is not getting exported by default in Ubuntu 12.04

When i run su on command line and enter root password, I am getting error as mentioned below: Command 'lesspipe' is available in the following places /bin/lesspipe /usr/bin/lesspipe ...
0
votes
2answers
56 views

A strange problem about terminal or command environment

Two weeks ago I was learning Python and Flask. I followed step-by-step the steps in The Flask Mega-Tutorial, Part I: Hello, World!. While I was following the tutorial, I had problem in "virtualenv", ...
0
votes
0answers
17 views

Save and restore tabs with name of terminal

I have a Terminal window with a dozen named tabs open *(gnome-terminal) I would like to save the current configuration and have it restored with names and directories. Is there a way to do this? I've ...
0
votes
2answers
25 views

bash script dollar sign operator $ question - is it incompatible to ~ operand?

I am new to the Linux environment. After a quick search I could not find a helpful question about the $ operator used in bash scripting. I do not know if this question relates more to the Ubuntu (or ...
0
votes
0answers
8 views

monitor network connectivity faults?

I am suffering poor connectivity when i work at home. Frequently I see write failed broken pipe and other errors indicating that Ive lost connection. I would like to complain to my service provider, ...
-1
votes
0answers
36 views

Linux Red hat vs Ubuntu , Which is best OS? [on hold]

No offence but just asking . Which OS is better in terms of UI Security Linux Commands Popularity 3rd party Softwares available for OS Used by large companies
0
votes
0answers
30 views

Bash puts ':' after each command

I updated my bash_aliases from another system I own, and now, I have found the following problem: If I use a command, bash put : after each command and alias. Why? What can cause this problem? In ...
1
vote
1answer
26 views

parted mktable error. but gparted “create partition table” works?

I am trying to automate formatting of USB drives. What I do is: Unmount USB drive terminal: sudo parted /dev/sdb1 mktable msdos This is when I get the following error: Error: Partition(s) 1, 2, ...
0
votes
2answers
22 views

The difference between lshw and lspci commands

I think it's a little confused issue but what's the difference the lshw and lspci commands ?
0
votes
0answers
16 views

How to use -d option in ubuntu just like java? [on hold]

how to use -d option in ubuntu? In java we use -d to separate the .java and .class in different folder.Is there any way to do this in ubuntu?
0
votes
0answers
13 views

What's mean of command? [on hold]

I have .bat file to start game server, in the code of them has a command but i dont know is this DOS's command or java or shell command ?. On startgame.bat echo ------------------------- java ...
0
votes
0answers
32 views

Issue launching phpstorm, seems like a java problem

I just got my ubuntu enviroment setup 2 days ago. And im trying to install phpstorm, and adding it into the enviroment path. I downloaded the tar.gz file, unzipped it to /home/documents/IDE/phpstorm/ ...
1
vote
1answer
52 views

Deleting input forward to the next space

This is my question: When in terminal I can use Ctrl+w to delete a whole word or IP (. is separator for each octet) when going leftward of prompt. However, if I try Alt+d to go rightward of prompt, ...
0
votes
1answer
28 views

short summary about video files (resolution, size, duration, codec)

I use mediainfo at the moment. It's too detailed $ mediainfo vine.mp4 | wc -l 66 I wish a command with only short summary. 6 lines of output.
0
votes
1answer
22 views

JAVA path error in hadoop

I installed hadoop watching a youtube video. while I try to run this in terminal it gives me this error srimanth@srimanth-Inspiron-N5110:~$ /usr/local/hadoop-2.6.0/bin/hadoop version ...
0
votes
0answers
31 views

Error message while using Sudo [duplicate]

I've got error message at my terminal. Whenever i am using sudo command, my terminal is showing: no talloc stackframe at ../source3/param/loadparm.c:4864, leaking memory
-1
votes
0answers
33 views

Please help me to install tar.gz packages with terminal [duplicate]

I’m trying to install tar.gz packages with terminal and I’m completely lose. Please help me to install them.
-1
votes
0answers
34 views

unzip cannot find or open the tgz file [duplicate]

When I run ~$ unzip android-sdk_r24.0.2-linux.tgz I get the error message unzip: cannot find or open android-sdk_r24.0.2-linux.tgz, android-sdk_r24.0.2-linux.tgz.zip or ...
0
votes
0answers
120 views

ALERT! /dev/disk/by-uuid/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx does not exist. Dropping to a shell! [duplicate]

I'm fairly new to Ubuntu. I previously had Ubuntu 14.04 LTS installed to the same drive as Windows 7, but then decided to install it to my separate 1TB drive instead. Now, on boot, it boots to the ...
0
votes
2answers
17 views

saving characters typed on keyboard

Is there any way I can save the characters are typed on my keyboard???? I want to know if it is possible in any way to save the characters that are typed on my keyboard by making changes in any file ...
0
votes
1answer
48 views

How to keep record of every action and command executed? [on hold]

I there a way to see the terminal code for every action taken? Something like a listener to know what goes on behind the scenes for every action I take. Example: "selected this element, clicked on ...