Quantcast
Channel: Commands by 0disse0
Browsing latest articles
Browse All 25 View Live

Image may be NSFW.
Clik here to view.

monitor memory usage

$ watch vmstat -sSM View this command to comment, vote or add to favourites View all commands by 0disse0 by David Winterbottom (codeinthehole.com)

View Article



Image may be NSFW.
Clik here to view.

To Stop or Start (Restart) a Windows service from a Linux machine

$ net rpc -I indirizzoip -U nomeutente%password servizio {stop|start} nomedelservizio View this command to comment, vote or add to favourites View all commands by 0disse0 by David Winterbottom...

View Article

Image may be NSFW.
Clik here to view.

Virtualbox: setup hardware

$ VBoxManage modifyvm "vm-name" --memory 256 --acpi on --ioapic off --pae on --hwvirtex on --nestedpaging on where - memory 256 assign 256 Mb RAM - acpi on enable ACPI (mandatory if you use Winfog 2000...

View Article

Image may be NSFW.
Clik here to view.

to clone an NTFS partition

$ ntfsclone Although not frequently used, it is possible to clone an NTFS partition to an image file and, where necessary, restore the image to another partition. This command is useful, for example,...

View Article

Image may be NSFW.
Clik here to view.

create an empty NTFS partition

$ mkntfs /dev/hda1 With this command you can create an empty NTFS partition. The command is useful if, for example, we want to format a previous installation of Windows and reinstall before you want to...

View Article


Image may be NSFW.
Clik here to view.

resize a NTFS partition

$ ntfsresize --size X[k,M.G] /dev/hda1 With this command you can resize an NTFS partition by specifying the new size (X) in Kbytes, Mbytes or Gbytes. If you plan to do this it is advisable to precede...

View Article

Image may be NSFW.
Clik here to view.

forcing Windows to do the scandisk during boot

$ ntfsfix /dev/hda1 This command marks it as "dirty" NTFS partition, forcing Windows to do the scandisk during boot. It is convenient if you work hard to NTFS partitions under Linux View this command...

View Article

Image may be NSFW.
Clik here to view.

How to add an "alternate access mapping" from the command line

$ stsadm -o addalternatedomain -url http://paperino.paperopoli.com -urlzone Internet -incomingurl http://quiquoqua.paperopoli.com How to add an "alternate access mapping" from the command line and...

View Article


Image may be NSFW.
Clik here to view.

Add a controller to a VirtualBox

$ VBoxManage storageattach "volpedimongibello" --storagectl "fighetto" --port 1 --device 0 --type dvddrive --medium "/tanto/mipaghi/tutto.iso was inspired by...

View Article


Image may be NSFW.
Clik here to view.

How to remove an ISO image from media database

$ VBoxManage closemedium dvd "/sicuramente/mipaghi/tutto.iso View this command to comment, vote or add to favourites View all commands by 0disse0 by David Winterbottom (codeinthehole.com)

View Article

Image may be NSFW.
Clik here to view.

How to extract 5000 records from each table in MySQL

$ mysqldump --opt --where="true LIMIT 5000" dbinproduzione > miodbditest.sql How to extract data from one table: mysqldump --opt --where="true LIMIT 5000" dbinproduzione tabella >...

View Article

Image may be NSFW.
Clik here to view.

display memory usage of a process

$ TOTAL_RAM=`free | head -n 2 | tail -n 1 | awk '{ print $2 }'`; PROC_RSS=`ps axo rss,comm | grep [h]ttpd | awk '{ TOTAL += $1 } END { print TOTAL }'`; PROC_PCT=`echo "scale=4; ( $PROC_RSS/$TOTAL_RAM )...

View Article

Image may be NSFW.
Clik here to view.

ubuntu tasksel

$ tasksel list-tasks The command tasksel allows the choice of packages from the command line to get predefined configurations for specific services (usually this option is offered during installation)....

View Article


Image may be NSFW.
Clik here to view.

Archive all files that have not been modified in the last days

$ find /protocollo/paflow -type f -mtime +5 | xargs tar -cvf /var/dump-protocollo/`date '+%d%m%Y'_archive.tar` Finally, we can make the file "unchangeable" sudo chattr +i View this command to comment,...

View Article

Image may be NSFW.
Clik here to view.

Send SVN diff to Meld

$ svn diff --diff-cmd='meld' -r 100:BASE FILE View this command to comment, vote or add to favourites View all commands by 0disse0 by David Winterbottom (codeinthehole.com)

View Article


Image may be NSFW.
Clik here to view.

Access to a SVN repository on a different port

$ sudo svn co svn+ ciccio_diverso://root@192.160.150.151/svn-repo/progettino first need to Edit the configuration file /home/cicciobomba/.subversion and under the [tunnels] add this line ciccio_diverso...

View Article

Image may be NSFW.
Clik here to view.

How to access to virtual machine

$ VBoxManage modifyvm "vm-name" --vrdp on --vrdpport 3389 --vrdpauthtype external --vrdp on enables VirtualBox RDP server for the VM --vrdpport 3389 ndicates the TCP port that the server will accept...

View Article


Image may be NSFW.
Clik here to view.

To capture a remote screen

$ DISPLAY=":0.0" import -window root screenshot.png But if you use a screen saver, you must first disable your screen saver kill $(ps ax | grep screensaver | grep -v grep | awk '{ print $1 }') View...

View Article

Image may be NSFW.
Clik here to view.

Kill a process (in windows)

$ taskkill /F /FI "USERNAME eq Cicciopalla" The taskkill command has the option of the curve, for a complete list just type: taskkill /? As we know, but to give a practical example, suppose you want to...

View Article

Image may be NSFW.
Clik here to view.

how to allow a program to listen through the firewall

$ netsh firewall add programmaautorizzato C:\nltest.exe mltest enable To allow a program ("programmaautorizzato" in example) to listen through the firewall View this command to comment, vote or add to...

View Article

Image may be NSFW.
Clik here to view.

what model of computer I'm using?

$ sudo hal-get-property --udi /org/freedesktop/Hal/devices/computer --key 'system.hardware.product' View this command to comment, vote or add to favourites View all commands by 0disse0 by David...

View Article


Image may be NSFW.
Clik here to view.

I am using a desktop?

$ sudo hal-get-property --udi /org/freedesktop/Hal/devices/computer --key 'system.formfactor' View this command to comment, vote or add to favourites View all commands by 0disse0 by David Winterbottom...

View Article


Image may be NSFW.
Clik here to view.

Create new user with home dir and given password

$ useradd -m -p $(perl -e'print crypt("passwordscelta", "stigghiola")') user The crypt function takes a password, key, as a string, and a salt character array which is described below, and returns a...

View Article

Image may be NSFW.
Clik here to view.

Reverse SSH

$ ssh -f -N -R 8888:localhost:22 user@somedomain.org this command from the source server and this follow in the destination server: ssh user@localhost -p 8888 View this command to comment, vote or add...

View Article

Image may be NSFW.
Clik here to view.

ttyS0 - terminal on serial connection

$ setserial -q /dev/ttyS0 I actually planned to do this for quite a long time, but since I haven't had any suitable client hardware, I procrastinated this. Now, the old laptop I've got from my dad,...

View Article

Browsing latest articles
Browse All 25 View Live




Latest Images