Here are a few commands that will help you find memory usage on an Ubuntu system: top -o +%MEM cat /proc/meminfo free -m ps -e -o pid,vsz,comm= | sort -n -k 2
Category: Linux
Permanent link to this article: https://daherlabs.mywire.org/wordpress/?p=642
Jan 24 2014
Some find commands
Some quick find examples find in current directory all files that have size greater than 0 find . -type f -size +1 -exec ls -la {} \; find in current directory all files that have size less than or equal to 0 find . -type f -size -1 -exec ls -la {} \; …
Permanent link to this article: https://daherlabs.mywire.org/wordpress/?p=237
Jan 24 2014
Copy directory from local host to remote host
Here is a simple and secure way to copy a directory structure from a local host to a remote host: # tar -czf – . | ssh root@ubuntu “(cd /mnt/tegile;tar -xpzf -)” The – repersents stdin The . means current directory
Permanent link to this article: https://daherlabs.mywire.org/wordpress/?p=233
Jan 06 2014
How do I add a DNS server via resolv.conf in Ubuntu
If you really want to add more entries to /etc/resolv.conf, create a /etc/resolvconf/resolv.conf.d/tail and add them there. root@speedy:/etc/resolvconf/resolv.conf.d# cat tail domain csuohio.edu. search csuohio.edu. nameserver 8.8.8.8
Permanent link to this article: https://daherlabs.mywire.org/wordpress/?p=137
Dec 19 2013
How to Increase Linux VM ext4 File System
If you have ever created a Linux VM guest and made the ext4 root disk too small, there is a pretty simple way to increase the size of the disk. The following will outline those steps. Sections in blue are what you would type: Edit the settings in vSphere for the VM increase the size …
Permanent link to this article: https://daherlabs.mywire.org/wordpress/?p=52
Oct 26 2013
Example syntax for Secure Copy (scp)
Example syntax for Secure Copy (scp) What is Secure Copy? scp allows files to be copied to, from, or between different hosts. It uses ssh for data transfer and provides the same authentication and same level of security as ssh. Examples Copy the file “foobar.txt” from a remote host to the local host $ scp …
Permanent link to this article: https://daherlabs.mywire.org/wordpress/?p=139