Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

Unix Commands - Useful command line

0 votes
80 views
added Jul 18, 2018 in Command-line by LC Marshal Captain (26,090 points)
cd ..
//Move one directory up

cd - 
//will switch you to the previous directory.
 
cd ../../dir3/dir2
//This relative path takes you up two directories, then to dir3, then to the dir2 directory
 
cd /dir1/subdirfoo
//Regardless of which directory you are in, this absolute path takes you directly to subdirfoo, a subdirectory of dir1
 
mkdir mynewfolder
//Create directory
 
mkdir mynewfolder1 mynewfolder2
//Create multiple directories at once
 
rm -rf mynewfolder
//To remove folder
 
nslookup 52.220.217.57
//DNS checkup

explorer
//open windows explorer
 
explorer "http://lazacode.org"
// Open site 
 
fc /l "C:\wamp\www\research\code1.php" "C:\wamp\www\code2.php"
//compare 2 files

 

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...