Guest User

Untitled

a guest
Feb 17th, 2018
471
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.13 KB | None | 0 0
  1. LINUX
  2.  
  3. FILE AND DIRECTORY COMMANDS
  4. # List all files in a long listing (detailed) format
  5. ls -al
  6.  
  7. # List all files by name only
  8. ls
  9.  
  10. # Display the present working directory
  11. pwd
  12.  
  13. # Create a directory
  14. mkdir directory_name
  15.  
  16. # Remove (delete) file
  17. rm file
  18.  
  19. # Remove the directory and its contents recursively
  20. rm -r directory_name
  21.  
  22. # Force removal of file
  23. rm -f file_name
  24.  
  25. # Forcefully remove directory recursively
  26. rm -rf directory_name
  27.  
  28. # Copy file1 to file2
  29. cp file1 file2
  30.  
  31. # Copy source_directory recursively to destination. If destination exists, copy source_directory into destination,
  32. otherwise create destination with the contents of source_directory.
  33. cp -r source_directory destination
  34.  
  35. # Rename or move file1 to file2. If file2 is an existing directory, move file1 into directory file2
  36. mv file1 file2
  37.  
  38. # Create symbolic link to linkname
  39. ln -s /path/to/file linkname
  40.  
  41. # Create an empty file.
  42. touch file
  43.  
  44. # View the contents of file
  45. cat file
  46.  
  47. #can run last command with sudo using
  48. sudo !!
  49. # can exit root from
  50. su <user_name> ==> su supuni
  51.  
  52. # Display the last 10 lines of file and "follow" the file as it grows.
  53. tail -f file
  54. example----
  55. tail -f prod.log ==> can view all logs
  56. tail -1000 prod.log ==> show last 1000 lines
  57. tail -1000 prod.log | grep CRITICAL (show only critical errors)
  58.  
  59. #Remove process from always start when computer on
  60. #show all the upladed processes
  61. ls /etc/init.d/
  62.  
  63. #remove it by
  64. sudo update-rc.d -f <process_name>.remove
  65.  
  66. # start services and stop
  67. service <process_name> stop
  68. service <process_name> start
  69. -------------------------------------------------------------------------------
  70. PROCESS MANAGEMENT
  71. # Display your currently running processes
  72. ps
  73.  
  74. # Display all the currently running processes on the system.
  75. ps aux
  76.  
  77. # Display process information for processname
  78. ps aux | grep processname
  79.  
  80. # Display cpu usage memory usage
  81. top
  82.  
  83. # Kill process with process ID of pid
  84. kill pid
  85.  
  86.  
  87. INSTALL PROGRAMS TO UBUNTU SYSTEM
  88.  
  89. #Update latest versions
  90. npm install npm@latest -g
  91.  
  92. #install vim
  93. yum install vim
  94.  
  95. #adb install
  96. sudo apt-get install adb
  97.  
  98. #install react-native
  99. sudo apt-get install react-native
  100.  
  101. #How to repair ubuntu selection
  102.  
  103. 1. verify that secure-boot disabled
  104. 2.Insert Ubuntu CD and try with Ubuntu cd
  105. 3.open terminal
  106. 4.sudo apt-add-repository ppa:yannubuntu/boot-repair
  107. 5.sudo apt-get update
  108. 6.sudo apt-get install -y boot-repair
  109. 7.boot-repair
  110.  
  111. --------------------------------------------------------------------
  112. SSH LOGINS
  113.  
  114. # Connect to host as user
  115. ssh user@host
  116.  
  117. # Normal Method
  118. ssh -i <path to file> user@host_name
  119. ssh -i .ssh/id_rsa.pub ubuntu@siplo.lk
  120. -------------------------------------------------------------------------------
  121.  
  122. FILE TRANSFERS
  123. # Secure copy file.txt to the /tmp folder on server
  124. scp file.txt server:/tmp
  125.  
  126. # Copy *.html files from server to the local /tmp folder.
  127. scp server:/var/www/* .html /tmp
  128. scp root@192.168.8.125:/usr/share/freeswitch/conf/vanilla/vars.xml /home/pi/
  129. local machine to server
  130. scp /home/supuni/ubuntu/jitsi-images/ meetrix:/home/ubuntu
  131.  
  132. # Copy all files and directories recursively from server to the current system's /tmp folder.
  133. scp -r server:/var/www /tmp
  134. -------------------------------------------------------------------------------
  135.  
  136. DIRECTORY NAVIGATION
  137. # To go up one level of the directory tree.
  138. cd ..
  139.  
  140. # Go to the $HOME directory
  141. cd
  142.  
  143. # Change to the /etc directory
  144. cd /etc
  145. -------------------------------------------------------------------------------------------
  146. SYSTEM INFORMATION
  147.  
  148. # Show the current date and time
  149. date
  150.  
  151. # Show this month's calendar
  152. cal
  153.  
  154. # Display USB devices
  155. lsusb -tv
  156. -----------------------------------------------------------------------------------
  157. FILE PERMISSIONS
  158.  
  159.  
  160. PERMISSION EXAMPLE
  161.  
  162. U G W
  163. rwx rwx rwx chmod 777 filename
  164. rwx rwx r-x chmod 775 filename
  165. rwx r-x r-x chmod 755 filename
  166. rw- rw- r-- chmod 664 filename
  167. rw- r-- r-- chmod 644 filename
  168.  
  169. # NOTE: Use 777 sparingly!
  170.  
  171. LEGEND
  172. U = User
  173. G = Group
  174. W = World
  175.  
  176. r = Read
  177. w = write
  178. x = execute
  179. - = no access
  180. ----------------------------------------------------------------------------------
  181. NETWORKING
  182.  
  183. # Display all network interfaces and ip address
  184. ifconfig -a
  185.  
  186. # Send ICMP echo request to host
  187. ping ip_address
  188.  
  189. -----------------------------------------------------------------------------------
  190. ARCHIEVES
  191.  
  192. #Compress an Entire Directory or a Single File
  193. tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
  194. tar -cvf /tmp/freeswitch_conf.tar /etc/freeswitch
  195.  
  196. - c: Create an archive.
  197. -z: Compress the archive with gzip.
  198. -v: Display progress in the terminal while creating the archive, also known as “verbose” mode. The v is always optional in these commands, but it’s helpful.
  199. -f: Allows you to specify the filename of the archive.
  200.  
  201. #Extract an Archive
  202. tar -xzvf archive.tar.gz -C /tmp
  203. tar -xvf /tmp/freeswitch_conf.tar /etc/freeswitch
  204. -----------------------------------------------------------------------------------
  205. SEARCH
  206.  
  207. # Search for pattern in file
  208. grep pattern file
  209.  
  210. # Search recursively for pattern in directory
  211. grep -r pattern directory
  212.  
  213. # Find files and directories by name
  214. locate name
  215.  
  216. # Find files in /home/john that start with "prefix".
  217. find /home/john -name 'prefix*'
  218.  
  219. # Find files larger than 100MB in /home
  220. find /home -size +100M
  221. -------------------------------------------------------------------------------------------------------
  222. DISK USAGE
  223.  
  224. # Show free and used space on mounted filesystems
  225. df -h
  226.  
  227. # Display disks partitions sizes and types
  228. fdisk -l
  229.  
  230. #can view image sizes
  231. identify <jpg_name>.jpg
  232.  
  233. ImageMagick is a suite of command-line utilities for resizing, converting
  234.  
  235. convert howtogeek.png howtogeek.jpg //converting between format
  236. convert howtogeek.png -quality 95 howtogeek.jpg //specify compression level
  237. convert example.png -resize 200x100 example.png //resize image
  238. convert example.png -resize 200x100! example.png // not considering ratio
  239. convert example.png -resize 200 example.png // consider only width
  240. convert example.png -resize x100 example.png // consider only height
  241. convert howtogeek.jpg -rotate 90 howtogeek-rotated.jpg // rotate image
  242.  
  243. ------------------------------------------------------------------------------------------------------------
  244. MYSQL
  245. 1. Log into mysql:
  246. mysql -u [username] -p;(will prompt for password)
  247.  
  248. data types (INTEGER,FLOAT, DECIMAL(i, j), CHAR(n), VARCHAR(n))
  249. DATE:
  250. • Made up of year-month-day in the format yyyy-mm-dd
  251. TIME:
  252. • Made up of hour:minute:second in the format hh:mm:ss
  253. TIME(i):
  254. • Made up of hour:minute:second plus i additional digits specifying fractions of a second
  255. • format is hh:mm:ss:ii...i
  256. TIMESTAMP:
  257. • Has both DATE and TIME components
  258.  
  259. 2. Show all databases:
  260. SHOW DATABASES;
  261.  
  262. 3. Access database:
  263. mysql -u [username] -p [database](will prompt for password)
  264.  
  265. 4. Create new database:
  266. CREATE DATABASE [database_name];
  267. An error occurs if database exists, Check if the database is existing
  268. DROP DATABASE IF EXISTS [database_name];
  269. CREATE DATABASE [database_name];
  270.  
  271. CREATE DATABASE IF NOT EXISTS Department;
  272.  
  273. 5. Select database:
  274. USE [database_name];
  275.  
  276. 6. Determine what database is in use:
  277. SELECT DATABASE();
  278.  
  279. 7. Show all tables:
  280. SHOW TABLES;
  281.  
  282. 8. Show table structure:
  283. DESCRIBE [table_name];
  284.  
  285. 9. List all indexes on a table:
  286. show index from [table];
  287.  
  288. 10. Create new table with columns:
  289. CREATE TABLE DEPARTMENT
  290. ( DNAME VARCHAR(10) NOT NULL,
  291. DNUMBER INTEGER NOT NULL,
  292. MGRSSN CHAR(9),
  293. MGRSTARTDATE CHAR(9) );
  294.  
  295. 11. Adding a column:
  296. ALTER TABLE EMPLOYEE ADD JOB VARCHAR(12);
  297. The new attribute will have NULLs in all the tuples of the relation right after the command is executed; hence, the
  298. NOT NULL constraint is not allowed for such an attribute
  299.  
  300. 12. Adding a column with an unique, auto-incrementing ID:
  301. ALTER TABLE [table] ADD COLUMN [column] int NOT NULL AUTO_INCREMENT PRIMARY KEY;
  302.  
  303. 13. Inserting a record:
  304. (Insert a tuple for a new EMPLOYEE for whom we only know the FNAME, LNAME, and SSN attributes)
  305. INSERT INTO EMPLOYEE (FNAME, LNAME, SSN)
  306. VALUES ('Richard', 'Marini', '653298653')
  307.  
  308. (Attribute values should be listed in the same order)
  309. INSERT INTO EMPLOYEE
  310. VALUES ('Richard','K','Marini', '653298653','30-DEC-92', '98 Oak Forest, Katy,TX', 'M',37000,'987654321', 4);
  311.  
  312. 14. MySQL function for datetime input:
  313. NOW()
  314.  
  315. 15. Selecting records:
  316. SELECT * FROM [table_name];
  317.  
  318. SELECT <attribute list>
  319. FROM <table list>
  320. WHERE <condition>
  321.  
  322. SELECT BDATE, ADDRESS
  323. FROM EMPLOYEE
  324. WHERE FNAME='John' AND MINIT='B’ AND LNAME='Smith'
  325.  
  326. 16. Explain records:
  327. EXPLAIN SELECT * FROM [table];
  328.  
  329. 17. Selecting parts of records:
  330. SELECT [column], [another-column] FROM [table];
  331.  
  332. 18. Counting records:
  333. SELECT COUNT([column]) FROM [table];
  334.  
  335. 19. Counting and selecting grouped records:
  336. SELECT *, (SELECT COUNT([column]) FROM [table]) AS count FROM [table] GROUP BY [column];
  337.  
  338. 20. Selecting specific records:
  339. SELECT * FROM [table] WHERE [column] = [value]; (Selectors: <, >, !=; combine multiple selectors with AND, OR)
  340.  
  341. 21. Select records containing [value]:
  342. SELECT * FROM [table] WHERE [column] LIKE '%[value]%';
  343.  
  344. 22. Select records starting with [value]:
  345. SELECT * FROM [table] WHERE [column] LIKE '[value]%';
  346.  
  347. 23. Select records starting with val and ending with ue:
  348. SELECT * FROM [table] WHERE [column] LIKE '[val_ue]';
  349.  
  350. 24. Select a range:
  351. SELECT * FROM [table] WHERE [column] BETWEEN [value1] and [value2];
  352.  
  353. 25. Select with custom order and only limit:
  354. SELECT * FROM [table] WHERE [column] ORDER BY [column] ASC LIMIT [value]; (Order: DESC, ASC)
  355.  
  356. 26. Updating records:
  357. UPDATE [table] SET [column] = '[updated-value]' WHERE [column] = [value];
  358.  
  359. UPDATE PROJECT
  360. SET PLOCATION = ‘Galle', DNUM = 5
  361. WHERE PNUMBER=10
  362.  
  363. 27. Deleting records:
  364. DELETE FROM [table] WHERE [column] = [value];
  365.  
  366. 28. Delete all records from a table (without dropping the table itself):
  367. DELETE FROM [table]; (This also resets the incrementing counter for auto generated columns like an id column.)
  368.  
  369. 29. Delete all records without deleting schema in a table:
  370. truncate table [table];
  371.  
  372. 30. Removing table columns:
  373. ALTER TABLE [table] DROP COLUMN [column];
  374.  
  375. 31. Deleting tables:
  376. DROP TABLE [table];
  377.  
  378. 32. Deleting databases:
  379. DROP DATABASE [database];
  380.  
  381. 33. Custom column output names:
  382. SELECT [column] AS [custom-column] FROM [table];
  383.  
  384. 34. Export a database dump :
  385. mysqldump -u [username] -p [database] > db_backup.sql
  386.  
  387. 35. Use --lock-tables=false option for locked tables.
  388.  
  389. 36. Import a database dump:
  390. mysql -u [username] -p -h localhost [database] < db_backup.sql
  391.  
  392. 37. Logout: exit;
  393.  
  394. 38. To eliminate duplicate tuples in a query result
  395. SELECT DISTINCT SALARY
  396. FROM EMPLOYEE
  397. -----------------------------------------------------------------------------------------
  398. Aggregate functions
  399.  
  400. 1. Select but without duplicates:
  401. SELECT distinct name, email, acception FROM owners WHERE acception = 1 AND date >= 2015-01-01 00:00:00
  402.  
  403. 2. Calculate total number of records:
  404. SELECT SUM([column]) FROM [table];
  405.  
  406. 3. Count total number of [column] and group by [category-column]:
  407. SELECT [category-column], SUM([column]) FROM [table] GROUP BY [category-column];
  408.  
  409. 4. Get largest value in [column]:
  410. SELECT MAX([column]) FROM [table];
  411.  
  412. 5. Get smallest value:
  413. SELECT MIN([column]) FROM [table];
  414.  
  415. 6. Get average value:
  416. SELECT AVG([column]) FROM [table];
  417.  
  418. 7. Get rounded average value and group by [category-column]:
  419. SELECT [category-column], ROUND(AVG([column]), 2) FROM [table] GROUP BY [category-column];
  420.  
  421. -----------------------------------------------------------------------------------------------
  422. Users functions
  423.  
  424. 1. List all users:
  425. SELECT User,Host FROM mysql.user;
  426.  
  427. 2. Create new user:
  428. CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
  429.  
  430. 3. Grant ALL access to user for * tables:
  431. GRANT ALL ON database.* TO 'user'@'localhost';
  432.  
  433. -----------------------------------------------------------------------------------------------
  434. MySQL Mathematical Functions
  435.  
  436. 1. Count rows per group COUNT(column | *)
  437.  
  438. 2. Average value of group AVG(column)
  439.  
  440. 3. Minumum value of group MIN(column)
  441.  
  442. 4. Maximum value of group MAX(column)
  443.  
  444. 5. Sum values in a group SUM(column)
  445.  
  446. 6. Absolute value abs(number)
  447.  
  448. 7. Rounding numbers round(number)
  449.  
  450. 8. Largest integer not greater floor(number)
  451.  
  452. 9. Smallest integer not smaller ceiling(number)
  453.  
  454. 10. Square root sqrt(number)
  455.  
  456. 11. nth power pow(base,exponent)
  457.  
  458. 12. random number n, 0<n < 1 rand()
  459.  
  460. 13. sin (similar cos, etc.) sin(number)
  461.  
  462. ------------------------------------------------------------------------------------
  463. MySQL String Functions
  464.  
  465. 1. Compare strings strcmp(string1,string2)
  466.  
  467. 2. Convert to lower case lower(string)
  468.  
  469. 3. Convert to upper case upper(string)
  470.  
  471. 4. Left-trim whitespace (similar right) ltrim(string)
  472.  
  473. 5. Substring of string substring(string,index1,index2)
  474.  
  475. 6. Encrypt password password(string)
  476.  
  477. 7. Encode string encode(string,key)
  478.  
  479. 8. Decode string decode(string,key)
  480.  
  481. 9. Get date curdate()
  482.  
  483. 10. Get time curtime()
  484.  
  485. 11. Extract day name from date string dayname(string)
  486.  
  487. 12. Extract day number from date string dayofweek(string)
  488.  
  489. 13.Extract month from date string monthname(string)
  490.  
  491. -----------------------------------------------------------------------------------
  492.  
  493. #reset root password
  494.  
  495. sudo /etc/init.d/mysql stop
  496. sudo mysqld_safe --skip-grant-tables &
  497. mysql -u root
  498. mysql> use mysql;
  499. mysql> update user set password=PASSWORD("NEW-ROOT-PASSWORD") where User='root';
  500. mysql> flush privileges;
  501. mysql> quit
  502.  
  503. sudo /etc/init.d/mysql stop
  504. sudo /etc/init.d/mysql start
  505.  
  506. ---------------------------------------------------------------------------------------------------------------
  507.  
  508. GITHUB
  509. 1.Adding an existing project to GitHub using the command line
  510.  
  511. 1.Create a new repository on GitHub
  512. 2.Open Terminal
  513. 3.Change the current working directory to your local project.
  514. 4.git init
  515. 5.git add .
  516. 6.git commit -m "First commit"
  517. 7.At the top of your GitHub repository's Quick Setup page, click to copy the remote repository URL.
  518. 8.git remote add origin <remote_repository_URL>
  519.  
  520. ----------------------------------------------------------------------------------------------------
  521.  
  522. 2.Changing a remote's URL
  523.  
  524. git remote -v
  525. git remote set-url origin <git_url>
  526. git remote -v // Verify new remote URL
  527.  
  528. ---------------------------------------------------------------------------------------------------
  529.  
  530. 3. Everyday Use
  531.  
  532. 1. shows you which files have been modified since the last commit
  533. $ git status
  534.  
  535. 2. $ git add <filename>
  536. ( if the file is untracked and you wish to add it to the project,
  537. git-add does it automatically for you.)
  538.  
  539. 3. creates the new commit
  540. $ git commit -m "commit_msg"
  541.  
  542. 4. can stored particular branch
  543. $ git push origin <branch_name>
  544.  
  545. 5. getting the changes from the remote server, and merging them
  546. into the local tree.
  547. $ git pull
  548. (If conflicts occured should resolved, can view by git diff
  549. add file and again commit that file)
  550.  
  551. 6. reviewing history
  552. $ git log
  553.  
  554. 7. show commit content
  555. $ git show <commit_number>
  556. ----------------------------------------------------------------------------------------------------
  557. git branch
  558.  
  559. 1. create a new branch
  560. git branch <branch_name>
  561.  
  562. 2. checkout another branch
  563. git checkout <branch_name>
  564.  
  565. 3.to delete a branch run from master branch
  566. git branch -d <branch_name>
  567.  
  568. 4. merge branches run from master branch
  569. git merge <branch_name>
  570.  
  571. ------------------------------------------------------------------------------------------------
  572. Revert a commit
  573.  
  574.  
  575.  
  576. SYMFONY
  577.  
  578.  
  579. Composer
  580.  
  581. 1. Update all dependencies of current project
  582. composer update
  583.  
  584. 2. Install dependencies for current project with versions defined in composer.lock
  585. composer install
  586.  
  587. ----------------------------------------------------------------------------------
  588. Console
  589.  
  590. 1. List available commands and show the Symfony version
  591. php app/console
  592.  
  593. 2. Display help for given command
  594. php app/console help [command]
  595.  
  596. 3. Display all configured public services
  597. php app/console container:debug [--show-private] [service_name]
  598.  
  599. 4. Dump all assets to the filesystem
  600. php app/console assetic:dump
  601.  
  602. 5. doctrine:schema:update
  603. Update the database with its new schema. Use with --dump-sql and --force
  604.  
  605.  
  606. -----------------------------------------------------------------------------------
  607. Cache
  608.  
  609. Clear the cached information
  610. php app/console cache:clear
  611.  
  612. In Server
  613. php app/console cache:clear --env=prod
  614.  
  615. (After clearing cache should set permission to execute following files)
  616. sudo chmod 777 -R app/logs app/cache
  617.  
  618. -----------------------------------------------------------------------------------
  619. Bundle
  620.  
  621. Install bundles web assets under a public web directory
  622. php app/console assets:install <target_dir> [--symlink] [--relative]
  623.  
  624. -----------------------------------------------------------------------------------
  625. Routing
  626.  
  627. Display current routes for application
  628. php app/console router:debug | grep [router_name]
  629.  
  630. -----------------------------------------------------------------------------------
  631. Logger
  632.  
  633. $logger = $this->get('logger');
  634. $logger->debug("===================================================================");
  635.  
  636.  
  637. JITSI
  638.  
  639. JItsi locally setup in your computer---------------
  640.  
  641. 1.git clone <the link>
  642.  
  643. 2.sudo n lts (take the long term support version)
  644.  
  645. 3.npm install
  646.  
  647. 4.make
  648.  
  649. 5 ./node_modules/.bin/webpack-dev-server // start the server
  650.  
  651. 6. ./node_modules/.bin/node-sass css/main.scss css/all.bundle.css && ./node_modules/.bin/cleancss css/all.bundle.css >
  652. css/all.css ; rm css/all.bundle.css // compile css
  653.  
  654.  
  655. PM2
  656.  
  657. PM2 is a production process manager for Node.js applications with a built-in load balancer.
  658. It allows you to keep applications alive forever, to reload them without downtime and to facilitate
  659. common system admin tasks.
  660.  
  661. Install pm2
  662. npm install pm2@latest -g
  663.  
  664. # Fork mode
  665. pm2 start app.js --name my-api # Name process
  666.  
  667. # Listing
  668. pm2 list # Display all processes status
  669.  
  670. # Logs
  671.  
  672. pm2 logs [--raw] # Display all processes logs in streaming
  673. pm2 flush # Empty all log files
  674. pm2 reloadLogs # Reload all logs
  675.  
  676. # Actions
  677.  
  678. pm2 stop all # Stop all processes
  679. pm2 restart all # Restart all processes
  680.  
  681. pm2 reload all # Will 0s downtime reload (for NETWORKED apps)
  682.  
  683. pm2 stop 0 # Stop specific process id
  684. pm2 restart 0 # Restart specific process id
  685.  
  686. pm2 delete 0 # Will remove process from pm2 list
  687. pm2 delete all # Will remove all processes from pm2 list
  688.  
  689. -----------------------------------------------------------------------------------------------------------------
  690.  
  691. Add Another Mail Account To Gmail
  692.  
  693. gmail → setting → Accounts and Import → Add another email adress
  694. smtp.zoho.com
  695.  
  696. zoho → settings → configure IMAP → click IMAP check box
  697. verify and paste confirmation code
  698. ----------------------------------------------------------------------------------------------------------------------------
  699. FREEESWITCH
  700.  
  701. #Freeswitch terminal restart
  702. fs_cli restart
  703.  
  704. #shutdown
  705. fs_cli -x “shutdown”
  706.  
  707. #run freeswitch
  708. 1. sudo su
  709. 2. go to bin ==> cd /usr/local/freeswitch/bin
  710. 3. ./freeswitch
  711.  
  712. #Backing up and restoring your Raspberry pi’s SD card
  713. df -h ==> show all the available space
  714. again insert SD card and run ==> df -h
  715. /dev/mmcblk0p1
  716. /dev/mmcblk0p2
  717.  
  718. then terminal
  719. sudo dd if =/dev/sdb of=~/SDCardBackup.img
  720.  
  721. ----------------------------------------------------------------------------------------------------------------------------
  722. Vim
  723.  
  724. #Delete Multiple Lines
  725. shift + v ==> Go to visual mode
  726. Select necessary lines
  727. delete
  728.  
  729. #Copy terminal output into file
  730. 1. triple-click the last line
  731. 2. hit shift + home
  732. 3. shift + click first line
  733. 4. copy ctrl +shift + c
  734. You can then paste the content to other text document
  735.  
  736. NANO
  737.  
  738. #exit with save
  739. Ctrl +X ---→ y --→ enter
  740. -----------------------------------------------------------------------------------------------------------------------------
  741. Angular2
  742.  
  743. 1. Create Component Using Terminal
  744. ng generate component <component_name>
  745.  
  746.  
  747. ----------------------------------------------------------------------------------------------------------------------------
  748. REACT-NATIVE
  749.  
  750. #Run android project
  751. react-native start
  752. react-native run-android
  753. -----------------------------------------------------------------------------------------------------------------------------
  754.  
  755. IMPORTANT WEB PAGES
  756.  
  757. #Get know your screen resolution
  758. whatismyscreenresolution.net
Add Comment
Please, Sign In to add comment