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

learn more… | top users | synonyms (5)

0
votes
1answer
75 views

Format and partition second hard drive using terminal? (Ubuntu Server 14.04)

this is my first question on here... So, I’ve installed Ubuntu server 14.04 (32 bit) on a VirtualBox virtual PC. Originally i just made it with a 32gb virtual HDD so since then I’ve created a new ...
0
votes
1answer
80 views

lightdm won't start — “failed to use bus name org.FreeDesktop.DisplayManager”

So I want to stop lightdm. I log out, go to terminal, and type in sudo lightdm stop And my screen goes back to the login screen briefly before going to an empty terminal with just the cursor ...
0
votes
2answers
30 views

How to put results of cmd to log [duplicate]

How to collect command's output/results to the log file? What command can write all msg's in shell to the file?
8
votes
7answers
716 views

How to find lines matching a pattern and delete them?

In a file with lots of lines I want to delete lines that starts with HERE IT IS. How can I do this using only command-line tools?
-1
votes
3answers
49 views

grep — list file name where match is found

I have a bunch of .html files in a directory. I want to look through each file and match a pattern (MD5). All of that is easy enough. The problem is I need to know what file the match was found in. ...
0
votes
1answer
71 views

terminal problem

I have a problem in my terminal. I've just download a android emulator and this happen on my terminal. i've been using Ubuntu 12.04. Command 'lesspipe' is available in the following places * ...
1
vote
0answers
23 views

Can not run without x-server running. No terminals

I'm having problems with my nvidia configuration so I decided to shut down X, re-generate the xorg.conf file and give that a go. I log out and at the login screen I hold Alt + Ctrl + F1 to go to the ...
0
votes
1answer
59 views

Desktop on Ubuntu 14.04 lts doesn't appear after login

I have installed radiotray and used to start the application from terminal just typing radiotray. I wrote a script start_radio.sh and put in /etc/profile.d. The content of start_radio.sh is only ...
1
vote
0answers
38 views

Altering command to start application by mouse click - how to

I have Google Earth installed on my Ubuntu 14.04 (Trusty Tahr) and, in order to display clamped polygons on it, I have to start it with the command LIBGL_ALWAYS_SOFTWARE=1 googleearth. I would ...
2
votes
1answer
38 views

Script to write at the beginning of every line of a text file the name of the file

I would like to write a shell script that allows me to open a text file with a particular name and write the name of the file at the beginning of every line. So, if my file is called "test" and it has ...
0
votes
1answer
25 views

growisofs with file of specific extensions

Could any guru help me construct a command line that would let me add just (say) *.jpg files to a growisofs command. It will need to recurse the folder structure and only add those .jpg files to the ...
0
votes
2answers
39 views

Compare names of files in two directories in command-line

Is it possible to compare names of files in two directories? I need to get information about how many similar and how many different names of files in directory some_directory and other_directory
2
votes
1answer
35 views

What mean numbers in output of history

Output of history command looks like this: 1975 mkdir adrnln/work_dump 1976 ls 1977 code What does numbers on the left side mean? Is it true that commands entered for example on Monday will be ...
-1
votes
0answers
36 views

mkdir not working in ubuntu [duplicate]

The command could not be located because '/bin' is not included in the PATH environment variable. mkdir: command not found i cannot seem to use mkdir and it shows this error how do i solve it
0
votes
2answers
42 views

I want to run commands after logging into the remote server using shh

#! /bin/bash read -p 'Username: ' user read -p 'IP: ' ip ssh "$user"@"$ip" osascript -e ' tell app "System Events" to display "Hello world"' This file will be ran automatically so it's not like ...
4
votes
2answers
187 views

How to scroll to the top of the terminal buffer with a keyboard shortcut?

Is there a keyboard command to scroll to the very top of the terminal buffer? The closest command I could find is Shift + PageUp, which only scrolls up one page of text at a time.
0
votes
1answer
40 views

Opening a terminal from 14.04 Installation Disk

Does anybody know of a way to open a Terminal from the Ubuntu 14.04 Installation Disk? If so, is there a way to format a drive / clean it from then? Any help is very much appreciated!
1
vote
1answer
80 views

How to use the dd command to copy an .img file to an SD card?

I've been trying to use the dd command to send an .img file of mine to a partition on my SD card. The command is: dd if=/dev/sda6/media/david/desktop/stellar-unbrick.img of=/dev/sdb1 Unfortunately, ...
0
votes
0answers
19 views

How is the UID of a user passed to sudo, eg in a “sudo mount…” command?

When I runsudo mount -t nfs -o udp,vers=3,soft,intr,rsize=8192,wsize=8192 nas:/nfs/shares/kevin /mnt/nas/ I know that to be successful my UID must match the UID of the owner of the exported filesystem ...
3
votes
2answers
62 views

Terminal Short-cut ctrl + alt + T, 2 terminals, different size

In Ubuntu, you can change the default size of the terminal using (edit>profile preferences) to change the size. How can you use the shortcut for bringing up terminal ctrl+alt+T to create two terminals ...
2
votes
2answers
60 views

Restore default apt repositories in sources.list from command line

I am looking for the best method to restore /etc/apt/sources.list to default from the command line. Is there no way to reference the source code of the package which generates this file or something ...
1
vote
1answer
29 views

Archey showing wrong information

I noticed that when I type 'archey' in terminal it shows that I'm using Gnome DE, but clearly I'm using Unity. Why is that? Any ideas? Here's a picture about the problem. It's not a big thing, just ...
1
vote
0answers
49 views

How to assign (set) a MIME type to a file?

Is there any command that could set MIME type of a file? for example: mime --set --MIME="image/pjpeg" filename.jpg
0
votes
2answers
54 views

Restore terminal background in ubuntu unity [duplicate]

Here how my terminal look, it's ugly. and I want to restore it to the Purple background with the gray test color. Like the default installation.
0
votes
1answer
64 views

Unable to connect to network using terminal

I have been trying to install programs using terminal but every time I get this error: ccmb@ccmb-HP-Pro-3330-MT:~$ wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb ...
0
votes
3answers
42 views

How to create a complete directory structure with a single command? [duplicate]

How to create a complete directory structure with a single command? By this question I mean, if I wanted to create a directory structure like below in one go using a command. ...
0
votes
1answer
25 views

Difficulty opening terminal using ctrl alt t?

When I press the keys ctrl + alt it resizes the window I am working in rather than allowing me to press t and open terminal. I have already tried to reset the factory defaults, and that does not work. ...
1
vote
3answers
143 views

How to log access to a specific folder and changes in its contents?

I need to track folder access time, and want to know what changes are made to it. How do I trigger those events? Is there a way to run a specific .sh file when the folder is opened?
1
vote
1answer
29 views

When I run lscpu, then what does “Stepping” mean?

I understand other machine characteristics but the meaning of "stepping" is still not clear to me. Is this perhaps related to Speedstep?
0
votes
1answer
56 views

Unable to access .jar file with .desktop

I have a Minecraft.desktop on /home/myuser/Escritorio (Where myuser i put my username and Escritorio means Desktop in spanish) [Desktop Entry] Type=Application Name=Minecraft Launcher ...
1
vote
1answer
40 views

How to customize the command prompt?

I'm willing to change my command prompt to be something like user$ where user is not root and root# When the current user is root. I've searched for that and found that this is achieved through ...
1
vote
2answers
93 views

Grep strings in a subgroup of lines in txt file

I have a file that looks like this AAA_21 PF13304.1 x_00004 AAA_22 PF13401.1 x_00004 SMC_N PF02463.14 x_00004 AAA_29 PF13555.1 x_00004 ...
2
votes
1answer
40 views

find a process' time in the current state

I'm Looking for a way to show the time a certain process is in it's current state. At the moment, I'm using the command: ps -A -o uname,pid,state,etime,cmd | grep -e pbs | egrep -v "grep" Which ...
1
vote
0answers
22 views

Image manager (picasa like)

I'm trying to find an image viewer/manager which should have two main features: Its fast in displaying/load images. gpicview is fair good at this task but doesn't have the second point... I need a ...
0
votes
2answers
71 views

What is keyboard shortcut to close terminal window?

I'm wondering if there is keyboard shortcut to close terminal window?
2
votes
1answer
22 views

Find the files of a particular user or group

How can I search the files based on the owner or group in command line? Right now I have tried ls -lR, that gives all the details of files in sub directories also, and I needed to manually search ...
1
vote
1answer
78 views

Commands in terminal and Nautilus hang without explanation after update 14.04 (02/14/2015)

after my update yesterday suddenly Nautilus has become completely unresponsive and almost every command (ssh, apt-get, mc) in terminal (but also wrapped like clicking on "reload" in Synaptic) hangs ...
2
votes
2answers
41 views

How to generate thumbnails in advance (pdf mostly) [duplicate]

I have a rather large set of documents (150 GiB ~5000 files) and would like to know how to pre-generate thumbnails, preferably from the command line, so that when I navigate to the folder, I don't ...
0
votes
1answer
33 views

New to Ubuntu! Help?

Good Morning Everyone, I have taken the leap to Linux from a life of Windows and OS X. And I'm stuck! I am trying to install Sense from the Open University and it looks like I have to follow a ...
0
votes
1answer
83 views

How to download Scribd files with wget?

I would like to download some pdf files in scribd, but i am a beginner in command line tools like wget. What command to use? Or You can suggest me also other terminal Tools
2
votes
1answer
72 views

Can't log in my ubuntu laptop, login loop

Can anyone help me, I cant log-in to my laptop. Looks like its just looping back to the login screen. what may have caused it, I was working on an AWS EC2 lab and after setting up an instance i ...
0
votes
1answer
33 views

Sourcing a script from another script fails

I have a script in a file - install.sh - with this content: #!/bin/bash wget https://raw.githubusercontent.com/aspnet/Home/master/kvminstall.sh sh kvminstall.sh source ~/.kre/kvm/kvm.sh Everything ...
0
votes
0answers
54 views

Ubuntu phone terminal [duplicate]

Does someone know if usual command line sotfware (i.e. image magick) can be installed and used in the ubuntu phone terminal app. Thank you.
2
votes
3answers
119 views

Taking screenshot of a specific area from the command line

I am running Lubuntu desktop 12 and I am looking for a tool that can take screenshots of a certain area from the command line. I have tried out Shutter. It works but, when I run the command it ...
1
vote
0answers
29 views

how to list all the terminal installed programs? [duplicate]

Let's say I’ve installed few things from the terminal and I want to list them so I can remove the installations. how can it be done? thank you!
1
vote
1answer
89 views

Get IP Address of Machine from Hostname or Mac-address

Is that possible to get the IP address of my machine from the hostname or the machine's own mac address? If yes, how? If not, could you suggest an alternative way?
1
vote
1answer
41 views

I'm using ubuntu 12.04 lts .The command sudo fdisk-1 gets a response “command not found” .Is this command no longer valid?

I'm trying to transfer some apps and files to a zip drive. I need to mount the device and sudo fdisk-1 was the first step. I also tried a cd but that didn't work either.
0
votes
1answer
53 views

What does the “apt-get dselect-upgrade” command do?

When running the command apt-get I got all the possible options and commands for apt-get. But one of these commands and definitions I have not seen before: dselect-upgrade - Follow dselect selections ...
0
votes
1answer
33 views

terminal is asking for password

At some point I was asking about getting my machine to boot with the following commands: hdparm -y /dev/disk/by-uuid/7ABB49654B799D40 hdparm -y /dev/disk/by-uuid/443AFBAD7FE50945 I made a script to ...
0
votes
2answers
36 views

.sh command not working in a desktop launcher

I'm using a desktop launcher to run a.sh script. In a.sh I'm calling another script b.sh using another user using this command sudo -u userB /home/userA/Documents/b.sh. But for some reason it's ...