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

learn more… | top users | synonyms (6)

0
votes
1answer
6 views

Terminal archive application with most types support

I need terminal application that can extract (dont care about compress) almost any type of archive.
0
votes
1answer
16 views

few lines insert in existing file via terminal? [duplicate]

i have file test.txt hi hello good luck i want in this test.txt hi hello good luck lms localhost how to add last two lines in terminal command ?
2
votes
4answers
111 views

Permanently store values when using the terminal

I have a few remote servers which I connect to through the terminal. The servers don't have a domain, only an IP address which is hard to remember when I got a few of them. Is there a way to ...
0
votes
2answers
27 views

list files or dirs starting with 'jre'

I need to list files and dirs with names starting with jre (small and capital letters are allowed). When I execute: ls | grep jre ...it greps just low capital letters and gives output with jre not ...
0
votes
1answer
12 views

Move folders modified a day prior 6.30 p.m

I need to move folders which are modified a day prior 6.30 p.m. For example. The folders which are modified in Day 1 before 6.30 p.m should be moved to another folder. Please help me. Regards, Syed
0
votes
0answers
21 views

awk add certain colum if two columns are similar

First at all I apologize, but I am a newbie in scripting, and I try to learn something. I have a file which looks like this: 1 A 84.54 47355 1281 1 A 80.16 47355 761 1 A 81.63 ...
0
votes
0answers
25 views

Problem with ssh connection

I can't connect to my vps via ssh-client on ubuntu and Putty(wine), but I still can connect to any other servers via ssh! Here is server-site tcp dump 18:58:39.886915 IP 192.168.255.253.45623 > ...
0
votes
1answer
16 views

keep track of multiple terminals from shell script

I am writing a quick start shell script to automatically set up my development environment for a current project. However, none of the commands in the shell script can be executed after my server ...
1
vote
2answers
33 views

Unable to match a specific number with “grep -E”

Here I'm trying to search numbers ranging from 0 to 255, but some random numbers get matched instead. Examples are: 1335.0.1.234 or 241.92.88.103 Bolded are the numbers which are matched. ...
0
votes
0answers
22 views

Can't open Terminal

I have Ubuntu 15.04 and I've changed my device's name from Settings > Details while the Terminal was running. I closed the terminal to see if the changes occurred (to see if the [usr]@[devicename] was ...
0
votes
0answers
22 views

Start bash script from another script

I have two scripts /etc/init.d/script_1 and /opt/script_2. I need to call script_2 from script_1. In script_1 i write: /opt/script_2 And it works. But there is small option with script_2 - it must ...
2
votes
1answer
106 views

How to hide command line output

I understand that computers work faster if they don't have to output data to the user, so I'm wondering if there is a way to hide the printed lines in the Terminal, and eventually just print any ...
0
votes
1answer
33 views

read file names from files for command line

I want to run a program requiring comma-separated arrays of files as follows: program -input1 A.txt,B.txt,C.txt -input2 D.txt,E.txt,F.txt -out out.txt My bash attempt: I'm running command from a ...
0
votes
0answers
14 views

Blueman terminal commands

I'm having trouble with blueman conflicting with my wifi drivers and want to create a bash script that turns blueman off, restarts network-manager and then turns blueman on. The problem I'm running ...
1
vote
0answers
13 views

Split found files to run find -exec commands in parallel [duplicate]

I have a multi-level directory of jpegs that I want to optimise on a semi-regular basis (as things are added). The command I'm using jpegoptim is single-threaded so when I run the following, only one ...
0
votes
0answers
27 views

Uninstall software in linux [on hold]

I am new to linux and using it run CentOS. I want to know how to uninstall a software using make clean command.
2
votes
3answers
43 views

Netbeans desktop shortcut file not working in Unity launcher, Exec command works in term

I've been having trouble with the Netbeans desktop file generated by the netbeans install script. The file in question, as found in the /usr/share/applications folder, is very simple: [Desktop Entry] ...
-1
votes
0answers
15 views

Modify Value Tags in xml file by command shell script [on hold]

mapred.tasktracker.map.tasks.maximum 2 The maximum number of map tasks that will be run simultaneously by a task tracker. mapred.tasktracker.reduce.tasks.maximum 2 The maximum ...
2
votes
1answer
36 views

Start new gnome-terminal with several tabs and wait after command is run

I want to start a new gnome-terminal window with some command in multiple tabs. Based to this question: gnome-terminal --tab -t "FOO" -e "/bin/zsh -i -c 'cd $(pwd); zsh -i'" \ --tab -t ...
0
votes
2answers
30 views

Disable and Enable Internet without disconnecting wifi

I need a way to disable and then enable internet access via command line while still remaining connected to wifi.
0
votes
1answer
15 views

Unable to locate package libssl-dev

I got this error while try to implement the aes c program in openssl please help me to solve this problem : fatal error: openssl/aes.h: No such file or directory #include <openssl/aes.h>
0
votes
1answer
27 views

How do i install less css compiler?

I just installed less css compiler using npm. Now thelesscfile directory is /usr/local/bin/lessc . i'm not clear what i need to change in lessc file and how to understand that compiler has been ...
0
votes
1answer
22 views

sudo nautilus results in “cannot open display” error

$ gksudo nautilus Failed to connect to Mir: Failed to connect to server socket: No such file or directory Unable to init server: Could not connect: Connection refused (nautilus:6072): Gtk-WARNING **: ...
1
vote
1answer
26 views

FIND command to find files and exclude one subdirectory

I want to find the *.mxf and *.MOV files with One Directory which are older than 14 daysbut i want to exclude one sub directory named as Secure within this search. here is my command , which i am ...
0
votes
2answers
35 views

Command to copy only folder with files

I have this types of folders folder A | -folder A | - 3files folder B | -folder B | - no files child folders A and B have same name of parent folder A or B. Parent ...
0
votes
0answers
16 views

Trying to compile/install gnuradio

john@john-Latitude-E6420:~$ sudo apt-get install gnuradio [sudo] password for john: Total Linux newbie. What is wanted for [sudo] password for john?
0
votes
0answers
19 views

Cron Convert FFMPEG Problem [on hold]

FILE NAME - cron_convert.php chdir('/var/sentora/hostdata/zadmin/public_html/ctkdonline_com/cron/'); set_time_limit(0); include_once 'System.php'; include_once 'vendor/autoload.php'; $sys = ...
0
votes
1answer
28 views

Use tty without login every time

In the Ubuntu-based systems, from the desktop environment, it is possible to open several tabs from the terminal emulator without making a login every time: the user is already logged in for every tab ...
-3
votes
1answer
27 views

How to open a .py in terminal? [duplicate]

I'm trying to learn how to use Python (IDLE using Python 3.4) on my Ubuntu computer, but i dont know how to open/run a .py file from the terminal from the desktop.
1
vote
2answers
49 views

Only delete files but not folders with rm

I have a directory like this: <folder1> <folder2> <folder3> file1 file2 file3 What is the rm command like that removes only file1, file2, file3 but leaves folder1, folder2 and ...
1
vote
2answers
135 views

Why redirection to a while loop doesn't print the messages?

Here is a shell code used to track changes in a file and output the content to the terminal: while read LINE do echo $LINE done < `tail -f /var/log/messages` It doesn't work, why?
13
votes
1answer
590 views

How to build a simple chat using netcat?

I am currently working on a project and I have implemented a simple chat application using the netcat libraries. The client is prompted to enter port number and the command nc -l -p xxxx where ...
2
votes
0answers
26 views

Execute prelogin scripts for SSH

I would like to know how I can execute a local server script, for instance send a mail using mailx, when a ssh session is opened, pre-login stage. When a ssh connection comes into the server, I ...
3
votes
3answers
85 views

Broadcast message from terminal to locally logged in user

Here is what I am trying to do. Kids are on Ubuntu box watching movies, youtube, etc. I am on my windows box doing whatever. Since kids have headphones implanted into their ears, I want to log into ...
0
votes
3answers
51 views

How to search through a man page?

I often want to search through a man page, however I am forced to either do: man <package> | grep <search> Or: man <package> > file.txt But there must be an easier way than ...
-2
votes
0answers
21 views

Running .command file without the request for a password [on hold]

So I'm actually running OS X Yosemite, but I figure, it's a unix-like OS, so... I stumbled upon this answer here But it's complete, and utter bollocks, in no way helps. First off, where the heck is ...
0
votes
4answers
51 views

Using grep in /etc/passwd to fetch list of users and system users, discriminating both

I want my grep to print a user list from /etc/passwd, and I've studied /etc/login.defs' minmax values for the ones I want my grep to fetch: # Min/max values for automatic uid selection in useradd # ...
0
votes
0answers
14 views

How to view progress of cp command in Terminal? [duplicate]

I prefer the CLI environment to the GUI environment, so I often use the cp command to copy instead of doing it through the Nautilus UI, however there is a slight downside to this as when copying large ...
0
votes
1answer
32 views

Replace /1/ with newline charecter [on hold]

I have a record like: "evSchema"\1\"UAT" "evSN"\1\"uadb" "evDirsep"\1\"/" "evRootPath"\1\"/work_area/APP_UAT/" "evSchema"\1\"RMS13" "evUser"\1\"STAGE" stored in a variable $record. I want to ...
1
vote
0answers
17 views

Remove/Hide Terminal window from custom Application List entry [duplicate]

First off, apologies if this is not the right place for this specific question, but new to both the site and the OS in question. -System Details- OS: Xubuntu 14.04 (xfce) Question: I have manually ...
0
votes
0answers
9 views

how to root Freebox server HDD?

I would like to rootmy freebox server (Freebox Revolution v6), in order to enter /and inspect /etc/and more. A matter of pure curiosity. So 2 questions actually : Launching terminal, browsing FS, ...
0
votes
1answer
48 views

shell script executing on remote host

I want to run testcmd.sh on remote host (Testhost) using the following command: ssh test@Testhost 'bash -s' < /test/testcmd But I get the below error : !!!!!Running MASTERCMD!!!!! bash: line ...
0
votes
1answer
20 views

Upgrade from development branch to alpha release [closed]

I am currently on Xubuntu 15.10. The kernel details are: Linux goelpc 3.19.0-22-generic x86_64 GNU/Linux I want to upgrade to the latest alpha build. How can I do it from the command line? Running ...
0
votes
2answers
69 views

why ls command shows the deleted files?

When I type ls in terminal of ubuntu, it shows the file that are present as well as the files that i have deleted? How to see the current files only? Why ls keeps record of deleted files? The ls ...
1
vote
2answers
71 views

How to paste the text selected from gui mode after switching into cli mode?

I have set up ubuntu-14.10 to boot up in text mode (cli) and I start gui with the command sudo service lightdm start then toggle between gui and cli mode with Alt+ctrl+F1 (to get into cli) and Alt Gr ...
0
votes
1answer
24 views

renaming files script error

I wrote code to change the name of bulk of file it should replace spaces with underscores and lowercase all the file name .. this is the code for file in *; do mv "$file" `echo $file | sed -e 's/ ...
1
vote
5answers
58 views

Terminal asks for password but does not let me enter anything (15.04)

Whenever I try to open steam or some other programs, it opens the terminal and asks for my password, but when I try to enter it, it does not type anything and pressing enter just says sorry, try ...
0
votes
1answer
24 views

Changing themes and environment variables :: 14.04 lts

Hey i'm having problems trying to find an editor for the theme color options, particularly pertaining to the field color and text color for general windows. I downloaded the new version of the ...
2
votes
2answers
74 views

Why is my repetition condition with grep range not working?

Searched for a solution on SO, Ask and Unix/Linux but I am lost trying to figure out how to write a conditional with a grep range: Go through: 1-20_something 100-200_something 2-100_something ...
0
votes
1answer
36 views

Confused about how to compile modsecurity module for apache in Ubuntu 14

After I followed the instructions in Building Custom ModSecurity Modules section in modsecurity dev guide in order to compile mod_tfn_reverse.c using the command apxs -ca mod_tfn_reverse.c, I'm still ...