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

learn more… | top users | synonyms (5)

2
votes
1answer
244 views

Drop to root shell (security vulnerability?) [duplicate]

I've known about the ability to drop to a root shell for quite a while. You just hold shift and select (recovery mode) from the list of kernels presented. I would mess up an install, then drop to ...
0
votes
1answer
126 views

Take Control of Process via SSH

I've started a process via SSH that it seems will take 2-3 days. I've not started this via tmux, so if my connection dies, my task will need to start over. Is there anyway I can login to another SSH ...
2
votes
0answers
49 views

remap Caps_Lock to Esc and Control without X11

I want to remap my Caps_Lock key to be Esc when pressed by itself, or Ctrl when pressed with another key. Here's the twist: I want to do it without X11. I found this answer which says "write a ...
3
votes
2answers
6k views

Show recent modified/created files using Terminal

Is there any command to display the recently modified/created files? Which one...?
1
vote
1answer
301 views

How to improve tesseract performance?

By all accounts, tesseract is superb. However, my results are dismal. I need to convert (digital, as opposed to from a book) text that I only have as a png. For instance: 2 3 academics 1 1711 2 ...
-1
votes
1answer
182 views

Ubuntu terminal commands and usage [closed]

I just got Ubuntu 12.04 yesterday and would like to learn how to use the terminal. The reason why is because I'm a developer and I'm trying to get any applications I develop supported on linux. From ...
0
votes
1answer
610 views

Creating and executing shell scripts to run XAMPP on double click [duplicate]

Basic Specs - Ubuntu 13.10, Gnome 3 (session fallback), Ambiance theme, Faenza icons. I recently installed XAMPP, now everytime i want to use the program i have to run the sudo /opt/lampp/lampp start ...
0
votes
0answers
78 views

Gedit: execute line in embedded plugin

is there a way to execute a line from within gedit to the embedded terminal in the bottom panel? I am aware of the external tools plugin, but I could not find a working code to send the command from ...
1
vote
0answers
121 views

“Command not found” when running a program

I downloaded the Citrix receiver for Linux 13.0 (I'm running Ubuntu 13.10 64bits) from http://www.citrix.com/downloads/citrix-receiver/linux/receiver-for-linux-130.html. I unpacked it using alien, but ...
1
vote
2answers
135 views

Identify all deleted files and folders in the command line

I have an ext3 image that I am working on for school. I am trying to identify all deleted files and folders, including the full path names and inode numbers of these files/folders. I believe I need to ...
4
votes
1answer
294 views

bash autocomplete feature doesn't work when I create function for emacs

Details about my system: I am running Ubuntu 12.04.4 LTS on Oracle Virtual Box 4.3.6, from Windows 8.1 installed on an Asus Laptop. I'm using bash_completion version 1.3 release (I got this from the ...
2
votes
2answers
1k views

Script to add multiple users in ubuntu (Bulk)

I need to add 10 users by a script in Ubuntu 12.04. That could reduces time by adding users manually , and i can apply this script on other desktop . Each user will has a specific user and in ...
5
votes
2answers
131 views

What is meant by “bash”?

I have been using Ubuntu for a short period of time. I have seen the term "bash" in many places, including a terminal. I have still not understood what it is. Can somebody please explain clearly?
1
vote
2answers
103 views

How do you use the command trap in a command-line?

I would like to know what exactly the trap command is and how it is used in the terminal. I came across this in the command line help.
1
vote
3answers
102 views

Output Directory Contents to File

I have a directory html. I would like to output the files of the directory, including the path, to a file. You can do something like this with the command: ls -R scripts/html > out.txt But the ...
0
votes
1answer
79 views

How to view a specific command executed in terminal by time? [duplicate]

I need to view a command in history by time executed in Ubuntu 12.04 . So , I could know each command , the time it has been executed . That help when you want to view a command that you should ...
77
votes
6answers
167k views

A command to list all users? And how to add, delete, modify users?

I need a command to list all users in terminal. And how to add, delete, modify users from terminal. That could help in administrating your accounts easily by terminal.
8
votes
4answers
15k views

How to close an open port in Ubuntu 12.04?

I need a command to list all open ports in my PC, and another command to close a port. Any suggestions? I need to close some applications' port.
2
votes
5answers
1k views

Remove First n Lines of a Large Text File

I need to remove the first 42 lines of a 2GB SQL dump. I know I can view the first lines using: head -n 44 dump.sql But is there anyway to edit or remove them?
0
votes
1answer
66 views

Where can I find introductory material for using the command line? [duplicate]

I've been very interested in Linux for a while now and Finally decided to install Ubuntu on my machine. I was wondering is there any sites or PDFs links were I could get an intro into running ...
2
votes
1answer
111 views

Non-deterministic behaviour in bash script for screen window opening and naming

I have the following bash script to set up a screen session with four windows from the command line in 13.10. Comments indicate what I think it ought to do. screen -dmS mysession # start screen, name ...
1
vote
3answers
2k views

Tor in command prompt

Is there any way to use tor in terminal (or any other software like tor in command-line). I need this for updating my Ubuntu, as my network not allows to download more than 20MB file. Because of this ...
0
votes
3answers
80 views

Quit from the middle of password setting process

I try to check whether my root has password or not. I run this command; sudo passwd root Later on it responses as; Enter new UNIX password: Based on that response, I have an indication that my ...
2
votes
1answer
6k views

Upgrading ubuntu 12.04 32 bit to 64 bit [duplicate]

I have recently installed ubuntu 12.04 LTS i686.I want upgrade it to 64 bit.How can I do it via terminal?
1
vote
1answer
3k views

Save the terminal history to a file for print

My Ubuntu headless server is about to lose both hard drives(raid1). I already saved the most important stuff. Now I'm sitting in front of a Mac OS X client with the terminal open (ssh). I need to ...
0
votes
1answer
115 views

Why do I need administrative privileges to use chsh?

I was working on a Ubuntu system where I did not have administrative privileges, and I couldn't change shells (from tcsh to bash) using chsh. I solved the problem writing in the .tcshrc to open bash. ...
3
votes
3answers
182 views

cat and Pipe to Run Command Won't Take Two Arguments

I have been using this command: cat urls.txt | xargs -n 1 -P 10 wget -q to download text files of URLs. This worked fine when my URL file was like: http://domain1.com/page.html ...
1
vote
2answers
843 views

How can I run command in a folder without changing my current directory to it?

may be it seems strange for you, but I want to run command in a specific folder without changing the current folder in the shell. Example - this is what I usually do: ~$ cd .folder ~/.folder$ command ...
0
votes
1answer
174 views

How to get Ubuntu installed and running for development (I.e. ruby on rails) [closed]

Ok, I am mostly a windows user but for for learning RoR at work, I had to get used to a mac . Once I did I found that I enjoyed it, especially the terminal, I could load up projects in moments what ...
0
votes
1answer
298 views

Using mimeopen to set default application outputs “Cancelled”

I'm attempting to follow the steps here to change the the default application that opens a Blender file. I input the command mimeopen -dmime my_file.blend and when prompted for the application, I ...
3
votes
2answers
331 views

What does cd - (cd hyphen) do?

I typed cd - in terminal by mistake today, and I got an error saying: bash: cd: OLDPWD not set And unfortunately, man cd doesn't exist. No manual entry for cd What does it actually do?
0
votes
2answers
558 views

Ubuntu 12.04.3 LTS installation mode “Install a command-line system” missing?

I just wanted to install a command-line system from my Ubuntu 12.04.3 LTS ISO and the option for that is missing. Am I missing something in the process or what could be the fault? Trying to use it ...
0
votes
1answer
408 views

Problem while running script

I am getting error while running kafka-zookeeper script. Command i tried to run the script is root > /etc/init.d/kafka-zookeeper start Problem 2014-01-22 13:05:26,683] FATAL Severe ...
0
votes
1answer
708 views

Bash script, cannote replace string in a file with escaped $ and &

I have creatd a shell script which takes a string as input. If the string contains '$' or '&', then I need to raplace those characters with '\$' and '\&'. I could done that with sed command. ...
3
votes
2answers
498 views

iwconfig doesn't report Link Quality unless run as sudo

I'm running Ubuntu 13.10 on a late 2013 Macbook Pro Retina (booted via Refind). My issue is that running iwconfig doesn't output Link Quality or Signal Level unless run as sudo. me:~$ sudo iwconfig ...
1
vote
1answer
47 views

How do I upgrade releases from a Live USB with the command line?

If I create a Live CD/USB and boot from that, is there any way that an existing system on the hard drive can be upgraded by use of the command line, and not the Ubiquity installer?
0
votes
2answers
70 views

How to find all the driver packages installed in my pc?

I want to find or list all the driver packages(wifi,graphics,etc) installed on my Ubuntu pc through apt-get or manually. How do i get that?
1
vote
2answers
5k views

How to sed and replace string with a folder path

I am trying to write the following bash script: HOME_DIR=/opt/my_home find ./CONFIG -type f -exec sed -i "s/_HOME_DIR_/$_HOME_DIR/g" {} \; The line that I want to be changed in the files is this: ...
3
votes
1answer
1k views

Search specific text from file and output the line (Shell script)

Suppose I have a variable $str1 str1="20140121-21:48:26|Joanne Frances|" What I want to do is search that part in the file. The file contains, for example: 20140121-21:48:26|Joanne ...
2
votes
0answers
724 views

Can cd into folder but I can't see it with ls or ls -a?

I've a shared partition between Windows and Ubuntu, achieved through VMWare's shared folders, and when I moved a folder into this shared folder Ubuntu couldn't see it. Ubuntu still can't see it, but ...
2
votes
1answer
411 views

Yad list columns

I need some help with Yad. This is my code: contact=$(while read line do firstname=$(echo $line | awk 'BEGIN { FS="|" } { print $2 }') lastname=$(echo ...
0
votes
3answers
10k views

accessing MySQL using terminal in Ubuntu 13.04

accessing phpmyadmin db from terminal now in ubuntu 13.04 i firstly installed mysql server with sudo apt-get install mysql-server mysql server version 5.5 now in terminal i can check if it is working ...
2
votes
2answers
172 views

hosts file and unclear behavior. How to make real alias?

I'm trying to create alias for my local website which is runned by vagrant(virtual box), hence I want redirect any requests from site.ru to 192.168.10.10/site.ru via /etc/hosts file. In the hosts file ...
18
votes
2answers
2k views

is there any significance to using tee

Why is it that almost all instructions regarding appending text to system files like fstab and /etc/apt/sources.list.d/<name>.list involve using tee and echo to append said text? Take the ...
5
votes
2answers
2k views

Script to write all filenames inside a folder and its subfolders to a csv file

I would like to write a shell script in order to write all files ending with .tif in a given directory and all its subdirectories to a csv file. The directory contains various sub-directories and ...
2
votes
0answers
145 views

Missing Unity Desktop /w SLiM Login Manager

Not too long ago I installed SLiM (Simple Login Manager) as my Login Manager for Ubuntu 13.04 just to give it a try out to replace the default Ubuntu Login Manager. After getting SLiM successfully ...
1
vote
2answers
212 views

Syntax of Terminal Commands

The syntax of a Terminal command will be something like the following: command -option argument But the following Git command seems irregular, can anyone explain the syntax of it. (Why two ...
0
votes
1answer
104 views

Installing ruby with rvm and making ruby visible to bash

I installed rvm according to the instructions from the official website. Then I installed two ruby versions While rvm was visible to bash, ruby was not. I was browsing the web for a solution and I ...
-1
votes
1answer
90 views

run ubuntu on minimal resources (run terminal only)

I'm setting up an "old" pc to run servers for some games and I would like to free up as much processing speed and ram as possible. My first idea is to shut down everything that isn't necessary and ...
0
votes
2answers
164 views

Installation interrupted

I was installing build essential through command line using "sudo apt-get install build-essential". It took almost 4 minutes to reach 87% and then i mistakenly pressed alt+ctrl+f12 and a black screen ...