Linux: remove file extensions for multiple files
location: linuxexchange.com - date: December 22, 2010
I have many files with .txt extension.
How to remove .txt extension for multiple files in linux?
I found that
rename .old .new *.old
substitutes .old extension to the .new
Also I want to do this for files in sub-folders.
Azure Linux remove and add another disk
location: linuxexchange.com - date: March 4, 2015
I had a need to increase the disk space, for my Linux azure, we attached a new empty disk and followed the steps here http://azure.microsoft.com/en-in/documentation/articles/virtual-machines-linux-how-to-attach-disk , the only difference is that the newly added deviceid was not found in /var/log/messages.
Now I need to add another disk, and we attached another disk, the problem is that for doing the first step of fdisk
sudo fdisk /dev/sdc
I have no idea where the recent disk is attached, total clueless, also what are the steps if i want to remove a disk altogether, I know umount will unmount a disk, but that doesn't neccessarily takes off the device from the instance, i want a total detachment.
Linux remove text from file
location: linuxexchange.com - date: February 25, 2013
I want to write a command with removes an item from a file .todolist like that:
path="$HOME/.todolist"
if [ "$task" == "- " ];
then
exit 1
fi
cat $path | grep -v $1 > $path
When I cat $path | grep -v $1 all works perfect but when I try writing back to the file it leaves the file empty. What am I doing wrong?
Linux Remove UART extra characters
location: linuxexchange.com - date: December 5, 2014
Working on linux, sending data to the serial port at 115200 bauds using:
echo -e "\x1B\x11\x00\x00" > /dev/ttyAMA0
The receiver side is reading the following data:
\xF8\x1B\x11\x00\x00\x0D\x0A
I dont want \xF8 as starting byte and \x0D\x0A as tails (carriage return and new line bytes).
How could I remove them? So far all I found is
stty raw -F /dev/ttyAMA0
This deactivates the \x0D, but i want to get rid of \xF8 and \x0A and no other options have worked for me.
How to remove multiple UTF8 BOM sequences before “<!DOCTYPE>”?
location: linuxexchange.com - date: April 24, 2012
Using PHP5 (cgi) to output template files from the filesystem and having issues spitting out raw HTML.
private function fetch($name) {
$path = $this->j->config['template_path'] . $name . '.html';
if (!file_exists($path)) {
dbgerror('Could not find the template "' . $name . '" in ' . $path);
}
$f = fopen($path, 'r');
$t = fread($f, filesize($path));
fclose($f);
if (substr($t, 0, 3) == b'\xef\xbb\xbf') {
$t = substr($t, 3);
}
return $t;
}
Even though I've added the BOM fix I'm still having problems with Firefox accepting it. You can see a live copy here: http://ircb.in/jisti/ (and the template file I threw at http://ircb.in/jisti/home.html if you want to check it out)
Any idea how to fix this? o_o
Linux: Remove path from $PATH variable
location: linuxexchange.com - date: November 17, 2015
I'm not too familiar with Linux and have defined the same path in the $PATH variable 6 times. I wasn't logging out to check whether it worked.
How can I remove the duplicates?
The $PATH variable looks like this:
echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/flacs/Programmes/USFOS/bin:/home/flacs/Programmes/USFOS/bin:/home/flacs/Programmes/USFOS/bin:/home/flacs/Programmes/USFOS/bin:/home/flacs/Programmes/USFOS/bin:/home/flacs/Programmes/USFOS/bin
How would I reset it to just
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
Many thanks!
remove old linux kernels
location: ubuntuforums.com - date: September 15, 2012
How does one remove the extra entries of the old linux kernels after upgrade of a new version. Remember Synaptic used to do that but it was the case when Startup manager used to do a good job. Please help if i'm missing something.
How to remove the previous Ubuntu linux kernel.
location: linuxquestions.com - date: July 20, 2007
Recently, when I go for an update. There is update of kernel. However, since then , I have 2 more options, which are the 2 new version of Kernel and its recovery mode.
I do not know what to do with the Grub as I tried to "c" (Without the " ") and d or e.(Command-Line tried before, Delete a command , edit the command also)
Note: After i finish, I press Esc and there is nothing change. How should I save them. There is no "s" .(Without the " ")
Perhaps, there might be a better way to do. If there is , can anyone kindly say so.
Thanks.
How to remove another linux partition and keep ubuntu?
location: ubuntuforums.com - date: July 16, 2012
I have installed linux mint on half of my hard drive and ubuntu 12.04 on the other half. Now i want to remove linux mint and "reclame" that space for my ubuntu, how do i do this?
Also when i try installing nmap and g++ on ubuntu it says:
E: package nmap has no instalation candidate...
Thanks...
How To remove linux and install windows 8 ( it doesn't boot into dvd...)
location: ubuntuforums.com - date: February 14, 2013
hey guys , such a good days in linux I have but I think I better move on to windows for various reasons...I remember the very first moments I got my new laptop I picked it up absent thought and removed that ugly windows and installed my favor os , ubuntu ... but after 7-8 month being a ubuntu user now I just can't remove it lol ...
no matter a windows dvd or ubuntu dvd I put in the cd-rom and restart the device it just does not boot into cd that I can remove linux and install win 8...
so the question is how do I remove linux and install windows 8 without getting my laptop ****** up ...
it's a acer spire series...I don't recall the exact model LOL
please wait...
Page: 1 2 3 4 5 6 7 8 9 10