Tag Info

Hot answers tagged

6

With UAC turned on, you're not running as an administrator normally. That's why you can't edit it. The simplest thing to do is to right-mouse click notepad and choose "run as administrator". You'll be prompted with a UAC prompt. You should then be able to edit and save the file.


6

For sh based shells: export EDITOR=/path/to/nano For C shell based: setenv EDITOR /path/to/nano Remember that unless you save these setting to your login profile script (/home/user/.bash_profile for example), you lose the setting at log out. If I remember correctly, FreeBSD uses C shell as the default user shell.


4

Is the malware code consistent? does it start and end with the same text in all cases?? If you can write a regexp, you can do something like: perl -npi.bak -e 's/startofcode.*?endofcode//' file1 file2 file3 orglob*


2

The FileZilla client Supports SSH or FTP over TLS. You can use the "View/Edit" option to edit individual files in their default application (taken from the system defaults). Once you make a change to the file and switch back to FileZilla it will prompt you to upload you changes, you can do this as many times as you like, if you are finished editing ...


2

WinSCP has that function


2

With Cisco IOS, you've got the more command, like on Linux, which you can use to print the content of a file. The more command shows a text file. This command works just like it does in Linux—it allows youto view a file on a disk. In the case of the Cisco IOS, you can use this command to view a text file, such as your configuration file or a saved backup ...


2

It is also possible to create a file with TCL scripting: Router#tclsh Router(tcl)#puts [open "flash:test" w+] { +>This is a test. +>Line 2. +>Third line. +>} Router(tcl)#tclquit Router#more flash:test This is a test. Line 2. Third line. I'm not a TCL expert, but I think editing is also possible by using the a+ (append) open flag instead of ...


2

I just wouldn't touch that file. If you really want to do it then you can. Just don't edit it in place. At least stop the DHCP server when you edit the file. (and backup the file in advance). On the other hand if you want DHCP handling out static addresses then you should do that in the config file. Then you can guarantee that each client gets the same ...


1

If you want to store persistent dhcp leases configuration. Put this snippet configuration in /etc/dhcpd.conf host workstation-PC { hardware ethernet 0:1d:7d:00:54:ef; fixed-address 172.32.100.185; } You can put this configuration for all Devices you want to do an IP reservation. Next step is remove dhcp.leases file and restart dhcpd daemon. So, ...


1

If you're running a Microsoft server at your remote location I would look into setting up RemoteFX. I have not used it myself but the idea is that you can utilize the remote server's graphics card during remote sessions. This would allow you to use whatever video editing software you wish and keep the data on the remote machine to be stored and edited in ...


1

How can I edit files and save them from Winscp in folders that require sudo be written before any modifying changes. Given this requirement, that you are logged in as an unprivileged users with sudo access, there is no direct way to do this with winscp connection. What you could do is enable SSH access to root with a key and then setup key-based ...


1

Click on the locked item, and you'll see a message telling you that "This item has been locked by for editing for X hours Y minutes..." In that message, there will be a button for 'unlock'. Click that button and you're good to go.


1

xdelta could do the patching and the hash check for you. Here is a go, assuming you have the file mounted with sshfs. I kept the file extension in case you want to enjoy syntax highlighting: #!/bin/bash if [ ! -f "$1" -o ! -w "$1" ] then echo "ERROR: cannot open $1 for editing" exit 1 fi TMP="/tmp/$(date +%s)-$$-$(basename $1)" ...


1

When you remotely connect with vim, does it actually write the whole file? vim ftp://myserver//path/file.txt



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