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

learn more… | top users | synonyms (5)

1
vote
1answer
38 views

Fancy apt-get output

How can you have a cleaner and fancier output with or with out colors form apt-get not apt something like the yum update output
1
vote
1answer
30 views

Why are these characters written to the terminal during clear?

I recently did a clear on my terminal and found that the following characters were printed on a the line above: [unknown character]3;J I did a clear | hexdump to look into this and found that the ...
0
votes
1answer
28 views

I moved my home folder

I was trying to move my home folder to another account so hopefully my programs would have run faster on a new user. But apparently that did not work out well and I can not login to either accounts. ...
0
votes
1answer
21 views

Node “Not a dynamic executable”

I'm running 14.04 on Linode and tried following these instructions to install NVM and then node. I can get NVM running just fine but installing Node results in cryptic "file not found" messages when I ...
2
votes
2answers
38 views

How to detect current gnome-terminal character encoding?

I am trying to detect the current gnome-terminal character encoding from the command line. I have tried using gconftool : $ gconftool-2 --get /apps/gnome-terminal/profiles/Default/encoding current $ ...
0
votes
0answers
17 views

Roundcube webmail emails filtering plugin

I have just installed roundecube web interface with Postfix & Dovecot,Every thing working fine but i want filter my mails in my inbox received from sender moves specific Folder Automatically. eg. ...
2
votes
1answer
50 views

checkinstall / make does not work for the program razercfg that I wish to install

My goal is to change my mouse DPI. So any less frustrating solution is also welcome. I've already searched and read through the other topics about razercfg & many others trying to figure out how ...
1
vote
1answer
31 views

How can I delete files from the low graphic mode?

yesterday I was trying to recover some lost files from an external drive using r-linux. I think this filled my laptop's hard drive and my computer suddenly crashed and went on low graphic mode which ...
0
votes
2answers
45 views

apt-get exits bash script after installing packages

I have read the answers in this post but it doesn't seem to work for my problem. I am executing a bash script via stdin from wget: wget -O - http://serverip/subfolder/script | sudo bash I've tried ...
2
votes
2answers
55 views

How often can I type exit without logging out?

I logged in to Debian 7 via SSH, not as root. When writing sudo all the time became too much overhead, I did sudo su. Since the Debian default shell (dash ?) does not support the Tab key to complete ...
3
votes
6answers
596 views

Create Random non words [closed]

dd if=/dev/urandom of=a.log bs=1M count=2 Question: if this code ^ gives me random numbers, how can I get random non-words (unintelligible) such as “hgcqw”. Question 2: Can the shuf command be ...
0
votes
1answer
18 views

How do I move between windows in IRSSI?

In IRSSI, I've always been able to use alt3 or alt5 to jump directly to specific windows. That seems to have stopped working. I think it probably happened with the update to 15.04, but I can't swear ...
0
votes
3answers
61 views

logout current user from script

I would like to create a script that: run some commands execute sudo su - [some other username] after I exit from [some other username] -> logout Example: test.sh echo "test script" sudo su ...
0
votes
0answers
5 views

`melt` concatenation giving segmentation fault (coredump) on some permutation of input videos

I am using melt {input-sequence} -consumer avformat:{output-name} acodec=libmp3lame vcodec=libx264 to concatenate a set of input videos. While this works really well for a set of input videos, it ...
0
votes
1answer
59 views

Data manipulation of libreoffice calc (spreadsheet) using terminal commands

Is it possible to manipulate data in LibreOffice calc (spreadsheet) using terminal commands. I have a spread sheet with loads of data in csv format and i want to do data manuplation from terminal ...
0
votes
1answer
25 views

How to pass a command with variables to at?

So, I'm making a bash script that's supposed to accept times and an extension from the user (through zenity) and schedule a call with sipcmd at the given time: extension=$(zenity --entry ...
1
vote
3answers
84 views

retain white spaces in fields when using awk

I am using nawk on a pipe delimited file to print fields as index and key where some of the fields contain white space, when there is no white space everything works normal, but in case of white ...
-7
votes
1answer
46 views

How to create and exploit a zip bomb? [on hold]

I am trying to create a zip bomb using shell. In one of the previous answers on the site, I saw this: dd if=/dev/zero bs=1000 count=1000000 | gzip > test.gz How does the above command work ? I ...
2
votes
1answer
30 views

How to append and sort the ouput of a command to a file?

I am trying to extract http usernames and passwords from a pcap file using tshark and then saving them in a text file. Later, if I want to add some more tuples to that text file, it should not only ...
2
votes
3answers
56 views

How do I change the language of the console permanently?

Is there a way I can change the language of the console? I have seen things such as adding LANG=C in front of the commands but that is a temporary fix. I can live with the Turkish console but when it ...
4
votes
2answers
372 views

Why can I remove a file as user which is owned by root?

As the title says: Why can I remove a file as user wich is owned by root? Here is an example: % sudo touch ~/test % ls -la ~/test -rw-r--r-- 1 root root 0 Jun 18 20:31 /home/aboettger/test % ...
2
votes
2answers
66 views

How to use`xdg-open` or `gnome-open` in a virtual terminal.

If I run a command like xdg-open document.pdf or gnome-open image.png from a gnome-terminal window, the file opens the way I want it to. But if I press Ctrl+Alt+F1 (for instance) first and execute a ...
-2
votes
4answers
59 views

Copy a string occurring before a particular pattern.

I am to copy this emuEventTrapInformative from below. -- Traps emuEventTrapInformative TRAP-TYPE ENTERPRISE compaq VARIABLES { scellNameDateTime, shelfId, ...
-2
votes
4answers
134 views

Read number of lines containing a particular string

I have this file: adaptec.mib,sCSISmart1,.1.3.6.1.4.1.795.2.5.0.101,CRITICAL, adaptec.mib,sCSISmart2,.1.3.6.1.4.1.795.2.5.0.102,INFORMATIONAL, ...
0
votes
0answers
50 views

make: *** No targets specified and no makefile found. Stop

I am trying to follow the THIS But while trying 3rd command: cd driver-uinput; make I get following error: make: *** No targets specified and no makefile found. Stop.
1
vote
2answers
86 views

How to run xrandr commands at startup in Ubuntu

How can I run the following xrandrcommand on startup? xrandr cvt 1368 768 xrandr --newmode "1368x768_60.00" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync xrandr --addmode VGA1 ...
0
votes
1answer
13 views

How do I finish installing ubuntu after it froze

I was installing ubuntu and I got to setting a username. I typed in a username then I tried typing a password but it froze. So i x'ed out the terminal and restarted my computer(hp chromebook 14). When ...
1
vote
1answer
29 views

Accessing Ubuntu terminal of a system outside LAN, but connected to internet

I know how to access remote terminal of an Ubuntu machine from a Windows machine using PuTTY when both the machines are part of same LAN. Is it possible to use the same method for two machines ...
0
votes
0answers
36 views

Error executing jar file [duplicate]

I have been trying for hours on how to get this file to executive. On Windows it starts up successfully but on Ubuntu it does not. My guess is that I don't have permissions to run the file properly. ...
0
votes
1answer
22 views

set -n not working in shell script when executing with source

this is the shell script.. #!/bin/bash set -n <<COMMENT1 tHIS IS A MULTILINE COMMENT MAN COMMENT1 <<COMMENT1 THII COMMENT1 : echo "this is ashok" echo "${LOGNAME}" when executing ...
1
vote
1answer
45 views

Error executing a jar file ubuntu

I have been trying for hours on how to get this file to executive. On Windows it starts up successfully but on Ubuntu it does not. My guess is that I don't have permissions to run the file properly. ...
0
votes
0answers
31 views

Ubuntu 14.04 /bin/bash Missing

I'm on a fresh install of Ubuntu 14.04 as of yesterday, and today I was setting up a samba mount, but when I closed my terminal and opened it back up, I only see the dollar sign "$", and up and down ...
1
vote
1answer
82 views

Check if two dirs have the same content

I usually name files with some temp names then later rename it as I need. Now I have two dirs of same name in different locations with same size and number of files, but files are of different names. ...
2
votes
3answers
57 views

Delete multiple lines from file when text is found

I've seen multiple answers to delete a single line with sed or grep, but I'm in need to search for a line, delete that one, and the 2 proceeding lines. For example, in the file ~/.profile I have lines ...
1
vote
1answer
76 views

How do i install psiphon on ubuntu 14.04 LTS (Step by Step)

I have tried using psiphon through vine but it didn't work. Please tell me how do i install it using terminal. Please post step to step answer Thank you
0
votes
0answers
16 views

Nagios is not showing maps and hosts in web interface

After performing a system reboot, Nagios is not displaying hosts and maps options in the nagios web console. How can this be resolved?
0
votes
3answers
50 views

Print a string a number of times [closed]

I have a variable numvar which contains a number. CODE something that reads number stored in numvar and then creates the same number of sTrapValue[with a number here that incrementally ...
0
votes
0answers
32 views

How to make GIF's at certain time from video and add text to it using ffmpeg

I have a one minute 3gp file from which i want to create a gif file. Condition for creating GIF file Create GIP between 21-40 seconds of one minute video Add text to the GIF Different fonts and ...
0
votes
0answers
33 views

I want to run a script on boot system Ubuntu 14.04 Server

I've done anything like this I made a symlink in /etc/init.d sudo ln -s /home/sts/erp-enterprise/bin/jleaf-apps /etc/init.d then I run the command $ sudo update-rc.d jleaf-apps enable then ...
0
votes
0answers
23 views

Screen resolution changed since recovery mode, cannot change back

I had to put Lubuntu into recovery mode, but the resolution of the screen kept on my desktop. The original resolution was 1680 x 1050, but it is now stuck at 1024 x 768. This is very annoying, and ...
1
vote
1answer
25 views

How to check if ICMP blocking is enabled in a system..?

A VLAN pool enabled newly is not pinging the device. Connectivity issues are not there. Can this be because if ICMP Blocking is enabled? How to check the status of the same?
0
votes
3answers
77 views

Comparing two strings together

I have array called sev[w] where w ranges from 1 to 21. the array contains the following: CRITICAL INFORMATIONAL CRITICAL INFORMATIONAL INFORMATIONAL INFORMATIONAL CRITICAL CRITICAL ...
0
votes
1answer
24 views

Sudo comes up with an error, cannot run anything as root

For some reason, when I try to run any programs (I am trying to run a rootkit hunter: rkhunter) as root on the command line with sudo like this: sudo rkhunter Then I get this message: You must be ...
0
votes
3answers
58 views

i am unable to install/uninstall anything using terminal

I can't open software center. also nothing is being installed using terminal command. Please help! I am getting this as an error: rahul@rahul-Aspire-5745:~$ sudo apt-get upgrade Reading package ...
1
vote
3answers
70 views

Bash: What to do when control-c won't kill a process, is there a better solution to the on/off button?

The full title of this question is: Bash: What to do when control-c won't kill a process, due to the fact that the bash script contains a loop which calls another process: Is there a better solution ...
1
vote
1answer
33 views

wget not getting full directory listing

I've hunted high and low and have not been able to find an answer to my problem. I'm not sure if this is the proper forum, but I hope someone here might be able to help. I have been using wget (FTP) ...
6
votes
4answers
164 views

How to disable input language switching in terminal

In Ubuntu 12.04 I have two input languages installed, English and Russian. I would like to disable use of Russian language in terminal - so that regardless of system-wide selection, terminal will ...
0
votes
1answer
33 views

File Permissions and umask [duplicate]

I am new to linux in general and have figured out the different programs belong to different groups. I can easily solve my own problem by typing sudo all the time. But I'd rather understand the why of ...
2
votes
1answer
35 views

How do I enable my application to write in home/**user**/.config?

I recently downloaded Sublime Text and when I entered the license into it. It replies Unable to write license file: /home/scaffrey/.config/sublime-text-3/Local/License.sublime_license and then ...
0
votes
3answers
51 views

Merging multiple (more than two) videos on Ubuntu

I want to merge videos in batch size of twenty (20) each. I'm running a Linux machine. The videos are in mp4 format and moderate quality. Some even have the audio stream missing. So far I've tried ...