I want to write a script that always listens in the background and executes a particular command when the user hits a specific key combination such as Alt + N. How this can be done?
Anandu M Das's questions
Is it possible to run a task or script started from terminal at the background?
I was trying to create a Kali installation suite on my 16 GB sandisk pendrive. I used the dd
command and umount
to mount the iso into my USB. After the installation is complete I formated my pendrive and now it shows it has only 10 GB of usable space. How to format it properly so that i can use the entire space?
I was trying to setup a permanent alias. but ~/.bash_aliases
file not found on my system. I have checked the bashrc
file and it shows bash_aliases
are enabled. I tried creating a new file in the same name in home directory and putting the aliases. But it also didn't work. Any solution to set a permanent alias?
Also i would like to know whether I can set an alias for shell that I created and it is residing in some other path. Thanks in advance.
I have a sentence whic contains an IP address. For example,
This sentence contains an ip number 1.2.3.4 and port number 50, i want to print the IP address only.
From the above sentence, I want to print the IP address only. How can I do this? I heard that it is possible to do this with sed
I have heard that Proxy Support in Trasmission has been removed as of version 2.12. Is it possible to use proxy by any other method?
I have the build of an iPhone application. As part of testing i want to emulate it on my Ubuntu. How to do this. Googling simply ate my time
When I type echo $TERM
on my terminal it shows me xterm
. From there itself I believe there are more than one terminal in Ubuntu. Is it the name of the terminal that I am using? I have seen some computer experts using terminal which is having lots of colored text and all. Actually how many types of terminals are there in Ubuntu?
I am trying to write a shell script which should crawl into a web page and fetch a particular character/phrase from its html and display it. Particular character means, for example if the html of the webpage contains a phrase, say password:blah
, then I want to print the very next character/word to password
, i.e., in short I want the script to print blah
. How can I do this?
If more explanation needed, kindly ask. Thanks in advance!
I am trying to write a shell script to check for the existence of a particular directory in a particular domain name. For example, I have a web site named www.example.com
. I want to check whether the page www.example.com/testpage
exists or not. I have a text file containing a list of directory names,one per line, which must be replaced with the name testpage
. I want the script to select each of these directory names,append it to the url www.example.com
and validate it. How can I begin writing my script?
I have an HP laptop. It is a 64 bit machine. But I have installed 32 bit Ubuntu 12.04 presently. My problem is, once the battery is fully charged and start using Ubuntu it gets drained completely within less than two hours. The interesting fact is that, I don't run any heavy tasks during this time. Watching a movie or surfing Internet causing such quick battery drain.
I have Windows also in my machine on which i get almost three and a half hours of battery backup. Can someone help me? Is this normal with Ubuntu? Or is it because of the installation of 32 bit OS on 64 bit machine?
I have seen a file named lock
in /var/cache/apt/archives
in my Ubuntu 14.04. This file has only root access. When I try to display the contents of this file using sudo nano lock
the file seems empty. What is actually the purpose of this file?
When I scanned a web application for open ports using built in nmap command, it showed me that there is a closed port 6969 in which a service is running named acmsoda. When I did some googling on this, I found that it is the standard port run by BitTorrent client. What is actually this service acmsoda do? Is that a security threat to open this port?
I want to print a part of a line in a file. The whole line looks like this.
Path=fy2tbaj8.default-1404984419419
I want to print only the characters after Path=
. I have tried grep Path filename | head -5
. But its not working.It still shows the entire line. How can i do this?
I had an old laptop. When it got complaint I removed its hard drive and started using it as external hard disk. It has an 80 GB of memory allocation for the windows C drive partition. But now i don't need that partition anymore. But the problem is I am not able to access that drive to paste files into it. How can I make read and write permission to this drive using terminal?
How can I access (remove to be specific) files from my external hard drive which is already mounted using terminal?
I am trying to write a shell script. The idea is to select a single line at random from text file and display it as an Ubuntu desktop notification.
But I want different lines to be selected each time I execute the script. Is there any solution to do this? I don't want the entire script. Just that simple thing only.
I don't wish to open terminal each time to execute my shell script. Is it possible assign a keyboard shortcut to execute the shell script I have created?
What I am trying to do is, I have a few texts in a file & when I tap a key combination like ctrl+Q, the text should appear as a notification on my Ubuntu Desktop. What is the command to assign this keyboard shortcut?
When we prompt our browser to save credentials once we log into a web application, they store our corresponding username and password. I know to recover these things from my browser. But I want to know to which directory in Ubuntu these passwords are stored?