You can use the netstat command:
[box type=”shadow”]netstat -tulpn
[/box]
[box type=”shadow”]netstat -nat | grep LISTEN
[/box]
You can use the netstat command:
[box type=”shadow”]netstat -tulpn
[/box]
[box type=”shadow”]netstat -nat | grep LISTEN
[/box]
In order to search recursively through directories, looking in all the files for a particular string, then to replace that string with something else (on linux/Unix), these commands should work (Where string1 is the original string and string2 is the replace-string):
[box type=”shadow”]find ./ -type f -exec sed -i ‘s/string1/string2/’ {} \;
[/box]
It would have been better to use xargs instead of -exec. Using xargs, you will fork fewer times. For large numbers of files, that means you will be done faster. In other words:
[box type=”shadow”]find ./ -type f | xargs sed -i 's/string1/string2/'
[/box]
Instead of editing all files in a directory, you can use the same concept with grep to edit only files containg a certain string. In other words:
[box type=”shadow”]grep -rl matchstring somedir/ | xargs sed -i 's/string1/string2/'
[/box]
The trick works fine except for one thing: It only replaces the first instance of string1 it finds in each file. For example if you had 100 instances of string1 in some files, then you would have to run the command 100 times! Also, if you don’t know how many times string1 can be found in the files, then you also don’t know how many times ou have to run the command before everything is replaced.
One Solution:
[box type=”shadow”]grep -rl matchstring somedir/ | xargs sed -i ’s/string1/string2/g’
the g on the edn will replace globally – all instances of string1[/box]
BEWARE:
If any of the files fed through xargs are binary, both sed and perl will change the timestamps of the files that all have the string, binary files or text files, but no changes are made (in at least the one file *I* was looking at at the top of the file directory hierarchy). So filter out binary files.
Another simpler Solution:
use the ‘rpl’ command (apt-get install rpl
; yum install rpl
):
[box type=”shadow”]rpl -x'.cpp' -x'.h' -pR "old-string" "new-string" *
[/box]
or replace directly without prompt
[box type=”shadow”]rpl -x'.cpp' -x'.h' -R "old-string" "new-string" *
[/box]
Here, all files with a .cpp or .h suffix wil be searched for an “old-string”. If found the “old-string” is replaced by the “new-string” in all directories recursively.
Another Solution FIY:
The rrep program lets you replace strings in multiple files and also recursively in directories. It also supports regular expressions. The usage is similar to grep.
http://sourceforge.net/projects/rrep/
I have 2 “data” drives. One is ntfs, the other is ext4.
The Trash works for both drives when I allow Nautilus to handle the mount.
I’ve opted to auto-mount them via entries in /etc/fstab, but when I do this, only the ext4 gives me a functioning Trash directory.
Trash on the ntfs drive simply does not work.
When I press “delete” or use the context menu item “Move to Trash”, I get this error dialogue message.
Cannot move file to trash, do you want to delete immediately?
. . . . The file “test” cannot be moved to the trash . . . .
Here are my /etc/fstab lines.
/dev/sdb1 /media/D_0931_data ntfs defaults 0 0
/dev/sdc1 /media/E_0298_back ext4 defaults 0 0
… and here is how I created the mountpoint directories.
sudo mkdir /media/D_0931_data
sudo mkdir /media/E_0298_back
Everything seems to be working fine, except for the Trash on the ntfs drive…
The Trash on the ext4 drive works normally.
SOLUTION:
I believe Nautilus needs a .Trash-1000 folder in the root of the filesystem (e.g. /media/D_0931_data/.Trash-1000) to exist and be user-writeable.
NOTE: the 1000 in the .Trash-1000 is your user ID. You can get yours by id -u USERNAME
. Change it accordingly if needed.
Try running this: sudo mkdir /media/D_0931_data/.Trash-1000; sudo chmod 777 /media/D_0931_data/.Trash-1000.
If that didn’t work, can you try the same but with .Trash instead of Trash-1000, and if that didn’t work, post the output of ls -la /media/D_0931_data
?
Try adding this to fstab
(on the ntfs line): defaults,uid=1000
instead of just defaults
.
1996-2003 Toyota 4Runner Workshop Repair Service Manual in PDF format, Windows/Mac ready!
This is a COMPLETE Service and Repair Manual for your 1996 1997 1998 1999 2000 2001 2002 2003 Toyota 4Runner. It covers every single detail. All models, and all engines are included.
This QUALITY manual is 100 percents COMPLETE and INTACT, no MISSING/CORRUPT pages/sections to freak you out! Detailed illustrations, exploded diagrams, drawings and photos guide you through every service repair procedure. This manual for 1996-2003 Toyota 4Runner can be viewed on any computer, as well as zoomed and printed. All repair procedures are covered A-Z. This manual makes any repair job easy to do with very easy to follow step-by-step instructions & pictures on all areas of repair.
Fixing problems in your vehicle is a do-it-approach with the this Repair Manual for 1996-2003 Toyota 4Runner as they contain comprehensive instructions and procedures on how to fix the problems in your ride. Repair Manuals can come in handy especially when you have to do immediate repair. The durability of your vehicle/bike is unquestionable but you also know that no matter how tough they are, constant use can cause them to deteriorate. When this happens, and ultimately it will, you will have to replace them. Some car/bike parts are very simple to mount and do not require professional help. By having a trusty repair manual you not only save money but you also get to experience the fun of do-it-yourself projects. A repair manual comes with comprehensive details regarding technical data, diagrams, a complete list of car parts and pictures. Even the most novice can easily follow the step-by-step guides which are made simple by the illustrations and drawings. You can find a complete list of accessories that can further enhance the performance of your engine. This Repair Manual for 1996-2003 Toyota 4Runner can save you a lot of time. These packages are complete with all the information needs. You will surely enjoy browsing through the pages and learning how to repair the different parts. It makes you up-to-date and more knowledge. Now, you dont have to rely on your mechanic for the simplest repair. You can do it at the comfort of your garage. All pages are printable, so print off what you need and take it with you into the garage or workshop. This manual will never get dirty and rip as you can keep it safely on your PC and print the pages you need in matter of seconds.
1996-2003 Toyota 4Runner
===========
Format: PDF
System: All Versions of Windows, Mac, iOS, BB, Android, etc..
Requirements: PDF Reader.
Printable: Yes
===========
SERVICE REPAIR MANUAL COVERS:
* ENGINE OVERHAUL AND REBUILDING
* BRAKES
* SUNROOF
* TIMING BELT REPLACEMENT
* TROUBLE CODES
* WIRING DIAGRAMS
* TROUBLESHOOTING AND DIAGNOSTICS
* COMPUTER DIAGNOSTIC TROUBLE TREE CHARTS
* ENGINE PERFORMANCE
* FRONT END AND ALIGNMENT PROCEDURES AND SPECIFICATIONS
* SUSPENSION
* TRANSMISSION REMOVAL AND INSTALLATION
* AIR CONDITIONING SERVICE AND CAPACITIES
* TRANSMISSION IN CAR SERVICING
* COMPUTER DIAGNOSTIC CODES
* FIRING ORDERS
* DETAILED SPECIFICATIONS ON EVERY MODEL COVERED
* FACTORY MAINTENANCE SCHEDULES AND CHARTS
* SERPENTINE BELT ROUTINGS WITH DIAGRAMS
* TIMING BELT SERVICE PROCEDURES
* BRAKE SERVICING PROCEDURES
* DRIVING CONCERNS
* COMPLETE TORQUE SPECIFICATIONS
* U-JOINT AND CV-JOINT SERVICE PROCEDURES
* REPAIR PROCEDURES
* COMPLETE WIRING DIAGRAMS
* HUNDREDS OF ILLUSTRATIONS
* VACUUM DIAGRAMS
———————————
And A LOT MORE..
———————————
INSTANT DOWNLOAD MEANS THERE WILL BE NO SHIPPING COSTS OR WAITING FOR A PAPER OR CD MANUAL TO ARRIVE IN THE MAIL. YOU WILL RECEIVE THIS MANUAL TODAY VIA INSTANT DOWNLOAD. BUY WITH CONFIDENCE !!
Nissan Altima (L32) 2008 Workshop Repair & Service Manual ☆COMPLETE & INFORMATIVE for DIY REPAIR☆
* COMPLETE, Absolutely No Missing Pages!
* Official Service INFORMATION You Can Count On!
* Customer Satisfaction GUARANTEED!
This high QUALITY official manual for Nissan Altima (L32) 2008 is 100 percents COMPLETE and INTACT, no MISSING, CORRUPT pages, sections to freak you out! This manual is exactly as described. It is in the cross-platform PDF document format so that it works like a charm on all kinds of devices.
FORMAT: PDF
LANGUAGE: English
OS: Windows/Mac/Linux
INSTANT DELIVERY: A download link will be sent to you instantly after payment. Simply click on the link and save it to your computer. You can use this Manual as long as you wish with no restrictions.
CUSTOMER SATISFACTION: If there is ANY kind of problem with the item you purchased, just drop a quick email. Within HOURS the issue shall be taken care of.
PRINTABLE MANUAL WITH DIAGRAMS: Just print the manual out and start to work. You can also use the manual with your Tablet/Laptop in your garage.
REFUND/EXCHANGE POLICY: We sell high QUALITY products only. However if you encounter any problems with the item you purchased, another replacement link will be sent to you. If we’re at fault, you will get 100 percents refund.
Buy ☆THE BEST MANUAL ON THE INTERNET☆ from responsible seller and get instant download now without uncertainty or surprise.
This highly detailed workshop service repair manual for download contains virtually everything you will ever need to repair, maintain, rebuild, refurbish or restore Your Nissan Altima (L32) 2008 (ALL MODELS ARE COVERED). All diagnostic and repair procedures and gives you access to the same information that professional technicians and mechanics have. You can view and print out the complete repair procedures with this workshop service repair manual Download – you do not need to be skilled with a computer.
Factory repair manuals are the same manuals as those used by the dealers. As they are primarily intended for dealer use the manufacturers usually release a base repair manual when a new model is introduced (either a single manual, multi-volume set or separate volumes) and then release supplementary manuals as the model changes, for example a model facelift or introduction of a new engine. Supplements generally cover only changes to the model and are intended to be used in conjunction with the base repair manual(s). For full coverage you will need the base repair manual and all relevant supplements up to the date your model was manufactured. Please note that workshop manuals are usually written for models sold in a specific country. Differences in specification can exist between models sold in different countries and items such as engines can vary.
Nissan Altima (L32) 2008
KEY WORDS:
General Information, Specifications, Lube Points, Oil Types, Periodic Maintenance and Tune-Up Procedures, Engine Servicing, Disassembly, Reassembly, Engine Removal, Fuel and Lubrication Systems, Carb Rebuild, Carb Adjustments, Electrical System, Ignition, Charging, Starter, Battery, Switches, Chassis, Wheels, Brakes, Steering, Suspension, Axles, Chassis Assembly, Servicing Information, Wiring Diagrams, Wire/Cable/Hose Routing, Tools, Tightening Torques, Service Data, Complete Engine Service, Fuel System Service, All Factory Repair Procedures, Wiring Diagrams, Gearbox, Exhaust System, Suspension, Fault Finding, Clutch Removal and Installation, Front Suspension, Bodywork, Gearbox Service, Gearbox Removal and Installation, Cooling System, Detailed Specifications, Transmission, Factory Maintenance Schedules, Electrics, Engine Firing Order, Brake Servicing Procedures, U-Joint Service Procedures, CV Joint Service Procedures, Timing Chain Service, Exhaust Service, Abundant Illustrations, Lots of pictures & diagrams, Plus Lots More.