Skip to content
Tizards Briefcase

Category: Linux

archiving: zip, tar

August 26, 2012 Stuart Leave a comment

tar to compress a directory [code]tar zcvf thetar.tar dir/[/code] uncompress a tar [code]tar zxvf thetar.tar[/code] if you need to tar…

Continue Reading →

Posted in: Linux

listing files and directories

Stuart Leave a comment

listing files and directories on Linux using ls, and its variety of switches. List files that begin with ‘stu’ [code]ls…

Continue Reading →

Posted in: Linux

find & grep: finding files

Stuart Leave a comment

there are many ways to find things when on the linux command line finding text in a file to find…

Continue Reading →

Posted in: Linux

file and directory sizes

Stuart Leave a comment

total filesystem disk space [code]df -h[/code] get the size of a directory [code]du -sh /the/dir/[/code] list of directories and size…

Continue Reading →

Posted in: Linux

writing to files

Stuart Leave a comment

appending text to a file [code]echo ‘hi there’ >> theFile[/code] append a file to another file [code]cat file1 >> file2[/code]…

Continue Reading →

Posted in: Linux

count user emails

August 25, 2012 Stuart Leave a comment

most of my servers are running redhat (or centOS). here’s how i would count the number of emails in each…

Continue Reading →

Posted in: Linux

executing files

Stuart Leave a comment

make file executable chmod +x thefile execute a file in your current directory ./thefile

Continue Reading →

Posted in: Linux

wget

Stuart Leave a comment

get all files of a type [code]wget -r -A.pdf http://www.thewebsite.com/[/code] get entire site like a spider [code]wget -r http://www.thewebsite.com[/code]

Continue Reading →

Posted in: Linux

show connected SMTP connections

Stuart Leave a comment

netstat -ntalp | grep :25 | awk ‘{print $5}’ | cut -d’:’ -f1 | uniq -c | sort -n

Continue Reading →

Posted in: Linux

Post navigation

Page 5 of 6
← Previous 1 … 4 5 6 Next →

Categories

  • Apache (12)
    • Rewrite Rules (7)
  • C# (1)
  • CSS (7)
  • dev testing (2)
  • HTML (6)
  • iPhone (1)
  • Javascript (15)
    • jQuery (9)
  • Linux (50)
    • mailservers (1)
    • Postfix (3)
    • vi (6)
  • Mac OS X (5)
  • MySQL (9)
  • Perl (5)
  • PHP (23)
    • CodeIgniter (1)
    • Cubex (1)
    • fuelPHP (9)
    • PHP Storm (1)
  • Plesk (16)
  • Python (1)
  • Ruby (5)
    • Hostpay (4)
  • unassigned (1)
  • Domain Availability Checker
Copyright © 2021 Tizards Briefcase — Lyrical WordPress theme by GoDaddy