Hot answers tagged

3

your file is being held by a process, you cannot delete it. use lsof file.log to know which process is writing to it. then mv file.log old.file.log restart the process. (this depend on process). next, you will be able to delete old.file.log. If your file id listed in /etc/logrotate.d/* you can issue a logrotate command.


2

To (almost) empty the file, use the command echo "" > file.log Or, if your OS has it, truncate file.log --size 0 Will truncate it to 0 bytes. If the file does not have any linefeeds, it is possible that the entire file is 1 line long, explaining a 3 gig file. You can grab a sample of the file using the command like dd if=file.log ...


1

You'll need the filesystem unmounted, but you don't need to actually use a live CD. A live CD is just convenient when the filesystem is /. (I haven't tried this, but I believe you could actually do it online if you didn't mind destroying the filesystem.) Any should work, as long as it has new enough tools (and, I suppose theoretically maybe not too new). ...


1

chmod 700 $HOME are the safest permissions. This gives no permission at all for group and other; they won't be able to enter your home directory, neither to read its contents or write files into it. However, it is not clear to me what you mean by They should be able to login, ssh, compile programs etc.


1

I've written a script which will do this below - please double check you are happy with it, particularly the rm -r command, as I have not executed it. (This command should delete everything in the given folder, including subfolders. #! /bin/bash FOLDER=/folder/to/delete MAXSIZEINGIGS=10 #### No User Serviceable Parts below this line ### MAXSIZE=$(( ...


1

Normally, if you want multiple physical interfaces (eth0 & eth1 for example) connected to the same LAN segment (the same VLAN in a set of switches), you should use layer 2 link aggregation (in Linux, it's called bonding), and not two separate interfaces each with its own IP address. If you want to have multiple IP addresses to the same LAN IP subnet, ...


1

You could install and use xttitle (Note the doubled t in the name). I use it like this in a file sourced by my ~/.bashrc: # from the "xttitle(1)" man page - put info in window title update_title() { [ $TERM = xterm -o $TERM = xterm-color ] && xttitle "[$$] ${USER}@${HOSTNAME}:$PWD" } cd() { [ -z "$*" ] && builtin cd $HOME [ -n ...


1

(The following text was rejected as improvement to @jstarek's answer and instead asked to provide as separate answer) Yes, but it depends a bit on what exactly you want to achieve. Incremental backup of the entire system (this is what Time Machine does): The following tools can do incremental backups to external drives, network storage etc. The most ...


1

According to the latest (Dec 2015) documentation for Webex Operating System and Browser Support, in footnote 2 they say: Linux is not supported for Personal Rooms. You may not give up all hope, as footnote 3 says Firefox 64-bit is not supported, which is not accurate as I use 64-bit Firefox with 64-bit Java 7.x (Oracle JDK) by manually symlinking ...


1

On Ubuntu 14.04.3 LTS, sudo service udev restart is critical: The udev documentation everywhere says that udev monitors /etc/udev/rules.d/ for changes, but this is not the case under this distro, so it needs to be restarted each time the rules are changed. Had me stretching my hair all day! Thanks Crizzo ! My /etc/udev/rules.d/test.rules: (all one line) ...


1

I suggest that if possible you try using the approach given at https://help.ubuntu.com/community/LucidUpgrades#Upgrading_Using_the_Alternate_CD.2FDVD Having experienced the problem described in this question, I was subsequently able to upgrade from 8.04 to 10.04 successfully by approximately following those instructions: I burned a CD of the image at ...


1

You need to generate rsa1 host keys if you want to run server with SSH1: ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key and specify the keys in the sshd_config: HostKey /etc/ssh/ssh_host_key Later on you need to specify some authentication method that is supported by this ancient protocol, otherwise you will end up like this: $ ssh -1 localhost ...


1

This is quite a reasonable question. Strictly speaking, your best bet to answer it would have been to freeze your system and to perform forensic tests. Any later intervention on your part, including virus removal, will alter and possibly erase altogether any bread crumb left behind by your intruder. Given that this path is no longer open to you, the best ...


1

reinst-required A package marked reinst-required is broken and requires reinstallation. These packages cannot be removed, unless forced with option --force-remove-reinstreq. Open the terminal and type: sudo dpkg --remove --force-remove-reinstreq jre1.8.0-71 sudo apt-get install openjdk-7-jre ## install jre from the default Ubuntu repos



Only top voted, non community-wiki answers of a minimum length are eligible