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

learn more… | top users | synonyms (5)

1
vote
0answers
8 views

Ctrl+L on terminal doesn't work anymore

Usually on the command line you could write Ctrl+L and this would clean the command line, but now it doesn't. The command does nothing at all. How can I restore it to the way it was? I'm using Ubuntu ...
0
votes
0answers
10 views

ubuntu machine had postgresql folder blown away manually

i have a machine where a user deleted their postgresql folder from the command line in an attempt to uninstall postgres. when they go into the Ubuntu Software Center, they are continuously prompted ...
0
votes
0answers
19 views

Schedule shell script including sqlplus

How to schedule script with sqlplus. When i m running shell script it is working good. But while scheduling it is not working. Nd when creating cronjob for norml folder creation it is working. But ...
0
votes
1answer
24 views

How to search ASCII text with Ubuntu Terminal

I have a file in which when I use the file myFile I get returned myFile: ASCII text, with very long lines I then proceeded to open it up as a .txt file and it opens up in notepad as a lot of ip ...
0
votes
1answer
20 views

Problem mounting my external hard disk

I'm unable to access any data from my external hard disk, because I can't mount it. namrata@fighter:~$ lsusb Bus 001 Device 003: ID 125f:a31a A-DATA Technology Co., Ltd. Bus 001 Device 001: ID ...
0
votes
0answers
13 views

Ubuntu 14.04 desktop disappears suddenly

After I boot my Ubuntu 14.04, it shows desktop successfully. Then I browse internet and open terminal, all work fine. But suddenly, when I try to scroll up or down the browser the desktop blinks and ...
0
votes
0answers
10 views

cheese burst weird errors

When taking pictures in 'burst' mode with cheese I get errors such as these: (cheese:7899): GLib-CRITICAL **: Source ID 348 was not found when attempting to remove it (cheese:7899): GLib-CRITICAL ...
0
votes
1answer
23 views

Error when i do ''make'' in cado-nfs map

When I’m in terminal and in the map cado-nfs. Then I do make. It will run for a second or two and then I gives a stops and gives this error: CMake Error at config/python.cmake:32 (message): Did ...
1
vote
2answers
405 views

Command Line - Move here [duplicate]

I would like to move a file via the terminal using the mv command. The syntax is mv file_old_dir file_new_dir I am already in the directory where I want the file moved. I just did mv file_old_dir ...
1
vote
1answer
18 views

Command-line perl regex replacement: replacement string contains utf8

Say you have a file named test.txt with the following lines: ಕದಂ.ಬ कदम्ब. Then, suppose you want to replace each dot following a devanagarI unicode character (ie in कदम्ब) with a ।. Then, you might ...
1
vote
3answers
177 views

How to see users in alphabetical order?

I want to know how to see the users by alphabetical order when using this command: cut -d: -f1 /etc/passwd I get a list with a lot of names including mine but it's very long. I want to order it ...
1
vote
2answers
51 views

Is there a command to round decimal numbers in txt files?

I saw this post, but I was wondering if there is a simpler command to round decimal numbers. I have a file with milions of numbers: 0.1 1.2 3.8 I want to round them to integer 0 1 4 Is there a ...
1
vote
1answer
19 views

How to print an octal value's corresponding UTF-8 character in bash?

I expected printf %s '\<octal_character_value>' to do the trick, but it doesn't: printf %s '\101' Outputs: \101
2
votes
3answers
128 views

Multiple File Extension Rename with single command

I received some important files via mail. There are about 150 files like these. The extensions of the files are named as zip1,zip2,zip3, zip_ etc. I just want to change the extension of these files ...
0
votes
2answers
117 views

Open a file at a certain position and read one byte in bash

Since two persons already voted to close this post, I'll try to make the question as clear as possible. A file on a physical device is represented as a binary sequence. That being said, what I need to ...
0
votes
3answers
63 views

Linux equivalent for «cmd /C start “Title” “C:\Folder\file.bat”» [duplicate]

I have a Java program that runs a batch file on Windows with Runtime.getRuntime().exec() using the following command: cmd /C start "Title" "C:\Folder\file.bat" The Java program ends quickly since ...
1
vote
2answers
41 views

Find and replace regular expression (matching unicode character class Devanagari) in multiple files

Say you have a file named test.txt with the following lines: ಕದಂಬ कदम्ब Then, suppose you want to replace each devanagarI unicode character (ie in कदम्ब) with a D. Then, you might think that the ...
1
vote
1answer
67 views

Print a list of “full” relative paths of all the files present in a directory and in its sub-directories

I need to print a list of "full" relative paths of all the files present in a directory and in its sub-directories. I used to do this with du and grep: du -a <path_to_directory> | grep -Po ...
1
vote
0answers
15 views

How to keep terminal for installation of debugging symbols of apport's local investigation alive?

apport allows to investigate crashes locally and to either start a gdb session, get a backtrace or install debugging symbols in that local investigation. When choosing the latter a gnome-terminal is ...
0
votes
0answers
22 views

How do you terminate the process “Mitmproxy”

I have recently been messing around with mitm proxy as it interests me. And this is a simple question that I couldnt find an answer for. How exactly do you terminate the mitmproxy? I tried sudo ...
0
votes
0answers
25 views

ubuntu 14.04.02 LTS Gtk warning

after screen freeze at sign on yesterday, I attempted fix thru Terminal commands (apparently I am way too much of a noob) currently in terminal I am unable to use gedit (confirmed newest version is ...
0
votes
0answers
5 views

localhost cannot access my newly created folder [duplicate]

I'm using ubuntu 14.04. I use to copy projects like wordpress and codeigniter and work in them. At the beginning after installing ubuntu 14.04 I granted all privileges to access var/www folder. But ...
1
vote
1answer
34 views

.zip file not getting extracted

I have downloaded linux game Urban Terror using flareget download manager which is 1.7 GB. The download seems to be completed without errors but it is not getting opened with archive manager and I get ...
0
votes
0answers
15 views

certain colours represent different attributes, but I am very confused in what colour and highlight means what [duplicate]

in the command line, certain colours represent different attributes, but I am very confused in what colour and highlight means what. e.g. ping6 is highlighted in red (I take it that means ...
1
vote
0answers
16 views

IpProtocols firefox add-on with gnome-terminal and multiple tabs

I want to use Firefox with IpProtocols 0.2.3 to launch telnet sessions from browser. It is working well for me with xterm terminal emulator, but i wish to use multiple tabs. Now I try to use ...
8
votes
2answers
1k views

Why I can't uncompress a .bz2 file using tar?

So I have this wikipedia dump sized at about 10gb and named as "enwiki-latest-pages-articles.xml.bz2". I have been trying the following commands in the terminal to unzip the dump: tar jxf ...
-1
votes
1answer
38 views

When I start the computer, it only shows the terminal

When I opened my computer, it shows the terminal interface. I don't know why but I think it's due to the many times I opened te terminal and typed lots of commands to fix my wireless network and ...
0
votes
0answers
12 views

Switch mouse pointer buttons

I have laptop and I would like to switch the primary and secondary left/right click buttons from the terminal and further in a script. I have followed this post How do I swap mouse buttons to be ...
0
votes
1answer
24 views

Run a multi-line script in Screen

I want to run this script in a screen: #!/bin/bash while true do java -server -Xms2G -Xmx2G -jar craftbukkit.jar echo "If you want to completely stop the server process now, press Ctrl+C ...
0
votes
0answers
15 views

EtherApe outputs “No D-BUS daemon running” error randomly

I have installed EtherApe with: sudo apt-get install etherape But now randomly (mostly when it is first run after startup), it doesn't work and I get this GUI error: sudo etherape I find that it ...
0
votes
1answer
22 views

ssmtp doesn't recognize ctrl+d

I'm trying to send emails from an ubuntu-server (14.04.2 LTS) via the command-line and later inside small scripts. To do so, I want to use ssmtp with an external mailserver, inside the network, that ...
5
votes
2answers
125 views

Total video time in a Directory

Is there a script(bash, python etc.) that outputs the total duration time of all video files in a Directory(recursively) ? For e.g on executing the following : script mypath it gives x ...
3
votes
2answers
166 views

Shortcut to send telnet session to background conflicts with Cisco terminal shortcut: Ctrl+Z.How do I change that?

My Linux machine has no GUI. I use it as a jump box from where I telnet/ssh on my routers to configure The shortcut to send a process to background in Unix is Ctrl+Z On the same time the shortcut to ...
0
votes
0answers
23 views

How to get a variable from a .cfg file and place it to an xml file? [on hold]

I wanted to write a shell script for linux. I will use it for soapui projects of mine. Assume that there is a variable in a.cfg file, a.cfg file #var=1.2.3.4 I wanted to get this variable and ...
1
vote
0answers
9 views

xfce compose key not working in xfce4-terminal

I configured my compose key in /etc/default/keyboard: ~ $ cat /etc/default/keyboard # Check /usr/share/doc/keyboard-configuration/README.Debian for # documentation on what to do after having ...
1
vote
1answer
29 views

Custom environment with gnome-terminal

I tried to put this into the startup applications: gnome-terminal --working-directory /media/Data/work/ -e '. .env/bin/activate' where .env/bin/activate represents my virtualenv. For some reason, ...
4
votes
0answers
29 views

How to put an image and some text to .doc file via command-line?

I am trying to create a file.doc (Microsoft Word Document format) and write some text into it and also, insert an image into it via command shell. I have no idea what or how should I do it. Any ...
0
votes
0answers
16 views

starting FGS at boot

I am having trouble starting FGS at boot on Ubuntu 14.04 LTS. In the documentation page it reads to set the environments and start the program each time after log in. Anyway, I would like to do this ...
0
votes
1answer
45 views

Format from terminal(ctrl+alt+f1)

24 hours ago I start using for the first time Ubuntu 14.10. I tried to install AMD GPU drivers and then I install from the terminal the fglrx and after a restart I got the The system is running in ...
2
votes
3answers
47 views

UBUNTU 14.04 Right mouse click and paste (shift+ctrl+v or ctrl+v) does not work when pasting on to the terminal. HELP!

I try to copy from the descriptions and paste the code into the terminal but it doesn't work. Even the rightmouse click does not work. Ctrl+V or Ctrl+Shift+V does not work even the right mouse click ...
-1
votes
0answers
19 views

Force logoff from command line [closed]

My [linux Mint] PC is used primarily by my kids. I want to impose a time limit on session length (and then deny login for a period). I have all of the pieces... except one: Ending the session. Since ...
3
votes
7answers
215 views

Delete files that aren't in a list of patterns

I run a car sales website for a client. They are constantly adding and removing cars. When a new one comes in, they add a batch of images and the website generates a thumbnail for each. The site ...
1
vote
3answers
98 views

Copy and overwrite directory recursively

I have a directory called 'existing_folder' and another directory called 'temp' I want to replace the contents of 'existing_folder' with those of 'temp' along with any sub directories. Because the ...
0
votes
1answer
44 views

awk print output redirection

I am writing a bash script, and in that bash script I have a line similar to this: awk '/TextToBeMatched/ { print; print "TextToInsert"; next }1' "/Path/to/specified/file.extension" And currently ...
8
votes
4answers
330 views

Print output of code in the middle of the screen

The code below will output whatever in file word by word on the screen. For example: Hello will be displayed for 1 second and disappear. Then, the next word in the sentence will appear for a second ...
4
votes
2answers
182 views

Print only one line at a time from text file

how can I print or display only word from a text file at a time. When I run my script it should only display each word from the text file one by one, but only display that word. This is what I have ...
0
votes
1answer
35 views

How can I roll back Ubuntu?

I face a very frequent problem: I am new to Ubuntu and I like experimenting with different softwares and environments, but either after installing them or after uninstalling them I can not log in into ...
0
votes
1answer
15 views

Templates directory in Ubuntu: can I use this feature with gedit in bash shell?

Saw this question: What is the "Templates" folder in the home directory for? But I wanted to know whether I can use this feature with gedit in bash shell? If yes How? If no is there any ...
2
votes
1answer
32 views

How to list GRUB's “menuentries” in command-line?

Is there a way of retrieving list of "menuentries" titles of GRUB? I need a results in a format that grub-set-default will accept. eg. "Ubuntu" "Memory test (memtest86+)" etc.
-1
votes
3answers
35 views

Scripting Help to filter out an IP-address

I have a large text file that i want to extract lines of data from, i want to extract every line that contains an IP address that i can specify (z.z.z.z) 2015-02-26 00:00:00 Local3.Info x.x.x.x Feb ...