Archive for Linux - page 5

Rename multiple files~ How to disable password authentication for SSH~ Mount encrypted volumes from command line with Luks~ How to mount a HFS partition in Ubuntu as Read/Write?~ Change extension to multiple files~ How to take MySql dump (backups)~ Preserve bash history in multiple terminals~ How to take mysql dump~ Run one process (or more) into tmux~ Check DNS nameservers information about host addresses~ How to purge the cache of a page~ Checking the Validity Date of an SSL Certificate~ How to restart network interface~ How can I monitor the memory usage?~ Default max heap size~ How to convert the ^M linebreak to ‘normal’ linebreak in a file opened in vim?~ find difference between two text files with one item per line~ how to extract the first and the last x lines of a big file~ How to remove the ^M return character on Linux~ Find difference between two text files with one item per line~ How to check git changes~ How to list all users in ubuntu/linux~ Bash: Match a word in a string and return the word preceding it~ Delete all files in a folder which don’t match file extensions~ Check space in a disk~ wget – how to mirror only a section of a website~ Move files older than 30 days in current folder to~ How to generate a secure random password~ How to retrieve Perforce password.~ How to get your online secret key directly to your terminal without saving it.~ The request to Suspend this virtual machine failed because the corresponding VMware Tools script did not run successfully.~ BASH Rename all file in a directory~ How can I edit the welcome message when ssh start?~ Find text including subdirectories in ubuntu~ Install the JDK on Ubuntu server~ Copy files with progress bar on terminal~ Decrypt file encrypted with old/primary master key~ How to remove the private master key from your laptop.~ my minimum dot bashrc file~ Add and append text to a file~ Network Connections and network protocol statistics – netstat~ Bash: TAB completion to be case-insensitive~ Get a list of all the cron jobs on a Debian based system~ Why use 64bit?~ Fork bomb~ Sniffing network packages – tcpdump~ Update the timezone~ How to install Java 6 on Ubuntu 12.04~ Search for a specific string inside a directory matching the files’ name~ Re-build the keyboard setting~ Size of a directory~ New IP~ Search for a file in a specific folder matching a string~ Resolve UTF-8 issue in Linux Console~ Untar a file/folder~ Linux basic command: cat, replace, redirect stdout to a file~ SSH Public Key Based Authentication — Howto~
Network Connections and network protocol statistics – netstat

Network Connections and network protocol statistics – netstat

netstat -nltp where -n Displays active TCP connections, however, addresses and port numbers are expressed numerically and no attempt is made to determine names. -l Show only listening sockets. (These are omitted by default.) -t Display only TCP connections. -p Shows connections for the protocol…

Continue reading →

Bash: TAB completion to be case-insensitive

Bash: TAB completion to be case-insensitive

If you want the TAB completion to be case-insensitive, like it is in MS-DOS for instance, you can in your ~/.inputrc set: set completion-ignore-case On Now, BASH will auto-correct the case of files and directories for you.

Continue reading →

Get a list of all the cron jobs on a Debian based system

Get a list of all the cron jobs on a Debian based system

I’m sure you have one time or another wondered where all the magic is happening on your servers. Anything from how and why the logs are rotated, why your desktop icon says “20 packages can now be updated”, how is the Apache cache cleaned when…

Continue reading →

Why use 64bit?

Why use 64bit?

…and the world strarted to turn to 64 bits OSs. The popular argument is that a 64bit operating system could address more memory than the ~3.5GB 32bit OSs stop at. However, with Linux, this is no argument as the bigmem patch (now called PAE) can…

Continue reading →

Fork bomb

Fork bomb

:(){ :|:& };: http://en.wikipedia.org/wiki/Fork_bomb

Continue reading →

Sniffing network packages – tcpdump

Sniffing network packages – tcpdump

Sniffing packages is extremely useful when debugging any network related traffic. Some of you are using a graphical client such as Wireshark, which is very nice when you’re debugging on your own computer. However this is inconvenient (and outright a pain to use) if you’re…

Continue reading →

Update the timezone

Update the timezone

dpkg-reconfigure tzdata sudo ntpdate ntp.ubuntu.com

Continue reading →

How to install Java 6 on Ubuntu 12.04

How to install Java 6 on Ubuntu 12.04

In Ubuntu: (as root) % mkdir /usr/lib/jvm % cd /usr/lib/jvm % cp /data/download/jdk-6u33-linux-x64.bin . % chmod a+x jdk-6u33-linux-x64.bin % ./jdk-6u33-linux-x64.bin % mv jdk1.6.0_33/ sun-java6-jdk % update-alternatives –install "/usr/bin/java" "java" "/usr/lib/jvm/sun-java6-jdk/bin/java" 1 % update-alternatives –install "/usr/bin/javac" "javac" "/usr/lib/jvm/sun-java6-jdk/bin/javac" 1 % update-alternatives –install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/sun-java6-jdk/bin/javaws" 1…

Continue reading →

Search for a specific string inside a directory matching the files’ name

Search for a specific string inside a directory matching the files’ name

find . -name "articleTypes.xml" | xargs grep -n -i -e 'tidy' or find . -name "apple.txt" -exec grep -H -n -i -e "tidy" \{} \; Search from the root all the files called ‘articleTypes.xml’ which contain the word ‘tiny’ and show in what line it…

Continue reading →

Re-build the keyboard setting

Re-build the keyboard setting

sudo dpkg-reconfigure console-setup

Continue reading →

Page 5 of 6 ← First ... 2 3 4 5 6