Serge
  • Member for 9 years, 4 months
  • Last seen more than a week ago
Why is it so that 32 bit is limited to 4 GB RAM but it can easily support 1 TB HDD's?
18 votes

The problem is with addressing: the RAM addressing is done on per-byte basis, so 2^32 allows to make 4G bytes addressable. The hard-drive addressing is done on per-sector basis. Each sector is 512 ...

View answer
How to run .js file from a command line on windows?
Accepted answer
18 votes

You have two options: Cscript.exe "C:\Users\Public\TestPro\TestPro Automation Framework\taf.js" or Wscript.exe "C:\Users\Public\TestPro\TestPro Automation Framework\taf.js" The former one starts ...

View answer
Is it possible for root to execute a command as non-root?
10 votes

Short answer: "Yes, this is possible". if you like to execute a non-X application then just use the following command: sudo -u abc command If you like to run some X application as another user ...

View answer
Is there a difference between LAN cable connecting two PCs and one connecting a PC to a router?
Accepted answer
9 votes

In the past it was a requirement to use cross-over cable to connect PC to PC or hub to hub or switch to switch. The straight-through was used to connect PCs to networking equipment. Presently, most ...

View answer
Power LED always stays on after shutting down the laptop
7 votes

This LED reflects the fact that your laptop is plugged into the power network. Unplug it and the LED will be switched off. The battery charge continues after you shut down your laptop. The long press ...

View answer
How would you delete a folder called * in / from bash?
Accepted answer
7 votes

use this short command: rm /\*

View answer
Why can I rename a running executable, but not delete it?
7 votes

It does not allow to delete the executable file and DLLs because Windows maps parts of the executable files into memory as part of the process creation, so it need the file during the lifetime of the ...

View answer
sed Command on BusyBox expects different syntax?
Accepted answer
6 votes

The Busybox iteself may have limited implementation of sed. You can copy the sed binary to some location and invoke it directly pointing it with a full path. You may fix some incompatibility issues ...

View answer
fsck from a Windows box
Accepted answer
6 votes

I didn't hear about fsck for windows, but you may download any LiveCD image of linux, make the bootable CD or usb flash disk (you may download the Windows version of Live USB creator here)

View answer
Why does Windows lock when editing an open file, when Linux doesn't?
Accepted answer
6 votes

What PDF viewer you are using in Linux? And what in Windows? Uh, I don't know. The standard one for ubuntu? This is the answer. It's the implementation defined behavior. It is completely ...

View answer
In TeamViewer, how to move toolbar to side of screen?
Accepted answer
5 votes

I don't know how to move, but there is a small triangle button at bottom right of the toolbar to collapse it. I hope this helps

View answer
Can dust cause damage to my motherboard?
5 votes

It hardly will cause short circuits, but it definitely leads to overheating. Your screen frozes are the consequences of this. You should clean everything with dry soft brush. Also check that all ...

View answer
Using a vnc client through ssh tunnel
Accepted answer
5 votes

Several options are available. First you need to setup a TCP tunnel. If the port forwarding to the local network is not disabled in the sshd_conf at host 1, then this would be enough: ssh -t -L ...

View answer
Clarification of the difference between PCI memory addressing and I/O addressing?
Accepted answer
4 votes

The physical address space is huge nowadays due to 64 bit addressing. Many devices, for example AHCI-compliant disk controllers, require quite big chunks of address space to be mapped to the device ...

View answer
grep recursively to look for occurrence of a word in a particular file
Accepted answer
4 votes

man grep: --include=GLOB Search only files whose base name matches GLOB (using wildcard matching as described under --exclude). so try this: grep -rin --include=wscript '...

View answer
Which logical CPU (core) belongs to which socket?
Accepted answer
4 votes

First 8 processors are from one chip and second 8 processors from another chip. You can distinguish it by physical id. As for difference in performance - I have no idea presently.

View answer
How to replace GRUB boot loader, from within Windows?
Accepted answer
4 votes

As far as you can boot Windows use the following command at the Windows command prompt: fdisk /mbr then don't forget to set the active partition

View answer
Sharing a serial port between two processes
Accepted answer
4 votes

In linux it always was a problem to get exclusive access to the serial ports as the only way to restrict unwanted interferention is the user/group access rights. With time the convention had been ...

View answer
Internal USB camera: what is SH?
Accepted answer
3 votes

Most likely it is a shield ground.

View answer
My computer gets hosted when using 3G
Accepted answer
3 votes

As the GSM operator assigned you the public IP you should ensure that you enabled the firewall on your connection. In linux the firewall is based on netfilter(iptables). Most distributions have GUI ...

View answer
Is there a serious issue with setting the SUID bit on tcpdump?
Accepted answer
3 votes

That means that everyone who has shell access to this machine may use tcpdump to capture the traffic. The paranoia is not the bad thing when we are talking about security. You may forget eventually ...

View answer
NTP no server suitable
3 votes

You did not instruct ntpd to reply to 192.168.1.100. I suppose you have a class C network, so add the following to your ntp.conf: restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap Then reload ...

View answer
How do I set an alias for a search command that takes two arguments
Accepted answer
3 votes

add to your ~./bashrc the following: mysearch () { grep -rl "$1" . 2>/dev/null | while read n; do grep -l "$2" "$n"; done } This defines the function that became available as a command at ...

View answer
Not able so send mails to custom domains
Accepted answer
3 votes

In response to e-mail I sent to the address you pointed I got the following delivery report: Delivery to the following recipient failed permanently: xyz@thecloudavenue.com Technical details ...

View answer
VNC over SSH with XY flags?
Accepted answer
2 votes

You should use port forwarding with VNC and ssh. Say, you have a vncserver with display :1 created at target host, then use: ssh -L5901:127.0.0.1:5901 user@host You also may add -N option to ssh if ...

View answer
is it possible to use multiple proxies for different target websites?
2 votes

Yes, there is a solution. You need to create a proxy.pac file that describes all such mappings. Actually it is a JavaScript file with a function that accepts 2 arguments (one is the URL and another ...

View answer
ntpdate with crontab or ntpd?
2 votes

The option (1) is preferable as ntpd is capable to correct the constant error of the machine clock. If you use option (2) then the time is not counted monotonically. As for all cluster nodes be one ...

View answer
Use outgoing port 80 to connect to another remote port, without root privileges
Accepted answer
2 votes

Yes, with help of the third machine that you have full control of and that can connect wherever you want. The recipe is simple: at this machine you set up the sshd server that listens on port 80. ...

View answer
Detect all links that exists pointing to /tmp?
Accepted answer
2 votes

try this: find / -path /proc -prune -o \( -lname '*/tmp' -o -lname '*/tmp/' \) -exec ls -l {} \; Sample output: # find / -path /proc -prune -o -lname '*/tmp' -exec ls -l {} \; lrwxrwxrwx. 1 sergey ...

View answer
SSH into VirtualBox Guest: Connection Refused
2 votes

You should check that your guest OS firewall is not blocking incoming connections on port 22.

View answer