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

learn more… | top users | synonyms (5)

0
votes
0answers
34 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
78 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
71 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
34 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 ...
1
vote
4answers
85 views

How to remove PATH variable on Ubuntu 14.04?

I've export PATH="~/.composer/vendor/bin/lumen" in .bashrc and .bash_profile after export then lumen command not working, Rasel Khan:~$ lumen lumen: command not found But if command type ...
3
votes
1answer
866 views

What is the logical mistake in this code?

I have written some code for downloading favicons. It has a logical error which I am not able to see. #!/bin/bash ico="1"; if [[ $ico =~ ^-?[0-9]+$ ]]; then wget -P $HOME/Downloads/ ...
0
votes
2answers
48 views

How to deal with spaces and quotes in the command line

I have used this link for preventing programs use the Internet connection on Ubuntu/Linux. However I still can't complete the last step as shown: $ ni wine C:\Program Files (x86)\Foxit ...
-2
votes
2answers
62 views

Delete lines between 2 strings

I am to delete all stings from starting of file to a certain point using anything, sed, Grep, awk in shell INPUT sCSISmart20 TRAP-TYPE ENTERPRISE cyclone ...
0
votes
5answers
108 views

How to change the title of the current terminal tab using only the command line

None of the currently posted answers works/answers the question. Using only a command at the command prompt, how do I change the title of the current terminal tab? Many posts suggest this: echo ...
0
votes
0answers
29 views

Shell script to retrieve MTR data

I made a script, to retrieve the data of a mtr to a specific IP, and log into graphite the average time response (ms) and the packet loss: But sometimes, the script fails, mtr report come like this: ...
0
votes
2answers
59 views

Need help with file copying in command line

I have this folder that is a whopping 700 GB and some of those files are duplicate. A lot of them have the same name, some duplicate, some not. Basically, I have about 30 folders in side that folder, ...
22
votes
3answers
3k views

Why can terminal uninstall itself?

How does apt-get remove xterm go through? And after it's been uninstalled, xterm doesn't close and continues to function normally. Is the xterm process cached in RAM whilst it is running?
28
votes
7answers
3k views

How to access bash without a terminal emulator?

Say I've accidentally uninstalled every terminal emulator on my system: xterm, uxterm, gnome-terminal, guake, etc. Is there a way I can access bash without a terminal emulator? One possible way I can ...
4
votes
5answers
250 views

Count the sum of each column in a file

In a file with different number of columns delimited by space ' ', How to count the sum of the columns. An example would show the need: File A: 1 2 2 3 4 5 6 1 1 1 5 Then the output would be: ...
-1
votes
2answers
33 views

How to copy an executing script from current folder to another by double click

How should we copy an executing script from one folder to the another? The script content is: #!/bin/sh zenity --forms --title="Add Friend" \ --text="Enter information about your friend." \ ...
-1
votes
2answers
114 views

Copying some parts of file

I am to copy "SNMP Agent is up" and "::=101" and count the number of variables present (example here there are 5) and put them in 3 Different variables. FROM FILE.TXT sCSISmart1 TRAP-TYPE ...
0
votes
2answers
56 views

VSCode error when launched from terminal [duplicate]

I have VSCode installed on Ubunutu 14.04 64-bit but when it's launched from terminal there is this error: [6303:0615/111654:ERROR:browser_main_loop.cc(170)] Running without the SUID sandbox! See ...
0
votes
1answer
33 views

2 Dimensional array Error in shell

#!/bin/bash i=$(awk '{x++} END {print x}' mibwithtraps) echo $i IFS="," while read f1 f2 f3 f4 do echo "hell :$f4" done < mibwithtraps This prints this: 7 hell :CRITICAL, hell ...
2
votes
1answer
29 views

Why is wget not calling my entire web address?

I have a test script with the command: wget ...
2
votes
3answers
207 views

How to delete lines starting with certain strings

Is there a way to delete lines starting with certain strings. I have this youtube-dl code youtube-dl --extract-audio --audio-quality 0 --newline --audio-format mp3 ...
0
votes
0answers
12 views

Invoking iscap and getting the following error

I am trying to invoke iscap for the first time on Ubuntu, however, i am getting the following error Error: Could not use JVM packaged with Installcape. The Java in your path did not work or could not ...
5
votes
3answers
697 views

Why do some programs return when being called from the terminal while others just return only with the inclusion of an '&'

Programs like Skype and Tixati can just be called from the terminal without adding an & at the end of their call. Why is this not the case with Firefox. I am just curious as to what programs I ...
0
votes
2answers
34 views

sakis3g installation

I have gotsakis3g.tar.gz file on my pc but as soon as I try to make this file executable using the command sudo chmod +x sakis3g it shows: NO SUCH FILE OR DIRECTORY I have been wanting to use ...
0
votes
2answers
41 views

What is this strange shell? I want to desinstall but don't know its name

When I login from the terminal (not XOrg), my computer starts with the weird shell featured in the image below. If I click in the Unity terminal icon, It opens with my dear bash shell. I don't ...
4
votes
1answer
86 views

How to get sudo to prompt you for a password each time

I find that if I execute something using sudo that then if I execute something else soon after also using sudo, that it does not prompt me for my password, and although this can be inconvenient in ...
3
votes
1answer
158 views

How to check if two or more programs are installed using a bash script?

I want to check whether two or more programs are installed using a bash script: hash foo &> /dev/null if [ $? -eq 1 ]; then echo >&2 "foo not found." else echo "foo found" fi ...
2
votes
3answers
83 views

search in subdirectories for all html files containing the tag <abbr>

I have a directory include many files of different extensions. What I want is to list all .html files only that contains the tag .
0
votes
2answers
77 views

Environment Variable seems to be set yet not working

I use Ubuntu 14.10 with bash shell. I downloaded a gradle distribution and moved it to a new directory. I want to permanently set a environment variable to point to the bin sub-directory of the ...
3
votes
1answer
25 views

What does command “suspend” do on Ubuntu 14?

I have made an installation of Ubuntu 14 yesterday. Accidentally, I encountered the suspend command. When I enter it on the command line and press enter, the terminal hangs. Neither can I interrupt it ...
1
vote
1answer
48 views

How to install simplegui using terminal?

I am currently learning Python at Coursera, where we use simpleGUI (Hit play on top left) to creat intractive games. So, I wanted to use it on my machine. I found YouTube video installing simpleGUI ...
1
vote
1answer
70 views

“chsh: invalid option — 'l'”

I have installed Zsh via running: sudo apt-get install zsh Using the following guide for installing Zsh provided by oh-my-zsh I attempted to set it as my default shell, namely I ran: chsh -s ...
0
votes
3answers
47 views

Life of background program [duplicate]

If you start a background program in the terminal with the & option. Will it stop when you close the terminal?
0
votes
1answer
19 views

Extract all files from a .tar.gz after wget and rename them

Is there any easy way extract all files from a .tar.gz and rename the files upon extraction? The tars inside look like: file1.obj file2.xr file3.ty file4.hjg All files are different extensions, but ...
1
vote
1answer
31 views

wget not properly downloading file to directory location

I have the command wget -nd -P /2011/ http://water.weather.gov/precip/p_download_new/2011/12/30/nws_precip_1day_observed_shape_20111230.tar.gz -O 20111230.tar.gz The plan is to store the data in ...
1
vote
3answers
19 views

Specify directory that wget downloads to

How can I specify the directory that wget should download all files to? To get an idea I'm currently running the script: wget -r --no-parent --reject "index.html*" ...
0
votes
1answer
22 views

How to backup and reinsert .bashrc-like files with post-install script?

I have my proudly written .bashrc and .bash-aliases files. Sometimes, I edit them. More often, I reinstall the whole system. What is the best and simplest way to preserve content of files (for ...
1
vote
1answer
32 views

How to capture output from tcpdump

I'd like to capture the output from tcpdump and use it as input for a second command. By the way I don't want to use the pcap format! I tried sudo tcpdump -q ip > ./out.txt When I watched the ...
1
vote
1answer
33 views

How to access mounted drive using terminal if drive contain space in name?

Here I am having some problem that how to access any NTFS drive that I have mounted. I want to access that drive using terminal and for that I have used cd /media/{username}/{drive-name} but in my ...
1
vote
0answers
34 views

Simply and friedly tutorial about grub2 command

looking straight constructed an example that describes how many commands for grub2. Perhaps there is an index for grub2 command along with a description and example? I have been really sick of people ...
1
vote
1answer
31 views

KVM installation & Prerequisite

Before Installation of KVM we have to check our processor support visualization or not and we run a command i.e: egrep -c '(vmx|svm)' /proc/cpuinfo Which gives output 0/1/2/3/4 depends on processor ...
0
votes
1answer
33 views

Bash script to log all recent apt-get installs and locations

Sorry if something like this already exists, but in my research I found no evidence that it did. what I want: a "monitor" type script that I can write, that I would "activate" prior to apt-get ...
0
votes
0answers
37 views

How do I enter my home directory password once [apt-get install, encrypted directory]?

Here is my dilemma: I install a lot of software from the command-line and then I move away from the terminal to do other things. Example: sudo apt-get -y install php5 php5-gd php5-mcrypt openssl ...