Which commands do I use in my terminal all day?

Image for post
Image for post

Update: April 7, 2020

Every day I use a lot of different tools. You know what I mean you had have read 26K thanks a lot. ☺️

Now I would like to share which commands that I use to improve my works, commits and etc … There is no big title label, just commands, and benefits. Let’s get started.

cloc counts blank lines, comment lines, and physical lines of source code of my project. With this command, you can install it. brew install cloc

by this command I can easily install and update new or previous Xcodes automatically. If you are working with a conversion from Swift 3 ->Swift 4 or Swift 2->Swift 3 ( Trust me there is still Swift 2 project a lot ) You can easily download whatever you need. Github link

xclint is a command line tool written in Swift that validates the state of your Xcode Project. It's able to find duplicated and missing files, inconsistencies between the groups and the folders in your system. It is more than better Slender. Github link

I manage the macOS dark mode from the command-line easily. Github link

If I need to change commit title after push. I am using this methods above. Github link

For completing iOS project story I have sub-tasks QA and VQA. Sometimes the environment cannot work and QA or VQA need to close their task. One screenshot can help them and I can easily create it.

I would like to keep clean my repos and my company’s project repos. I really don’t want to commit every change but also I don’t want to lose updated code files. git stash command saves our code without making a commit.

I need to work different java versions and I am using jenv. Github link

I use to git bisect. This tool allows me to find an offend and bad commits in my project. For example, you’ve found a bug in your codebase and you’re not sure of when it was introduced.

I am keeping updated all my packages and I can clean up all out of date formuale.

I create an integration with FBSnapshotTest library. With Fastlane scan, I can run all test methods ( XCTest, Quick, Nimble ) automatically. Github link

This command helps me to find which branch cannot merge with master.

I can reorganizes my Xcode project folder to match my Xcode groups. Use this command be sure source control before doing anything. Github link

HEAD is the currently checked out commit, and HEAD~n is nth commit before that. So it’s the version two commits ago. If you want to go back twenty commit ago update number from 2 to 20.

I am using Comcast at the home and the office also I could not remember when I used last time cable. I am never alone to use Wifi Router and it can be sometimes headache with speed-test I can test my internet connection speed and ping using speedtest.net from the terminal. Github link

I am shutting down MacBook from the terminal without entering password.

More readable and friendly git log .

To list the available devices you can choose from, execute the following on a terminal.

I manage Xcode Server activities ( start, stop, restart). Also I reset Xcode Server using the command below

This command will open iPhone X automatically. I use this command, if I need second simulator immediately.

Sometimes, I need to test Bitrise build with iOS simulator. With this command, I can easily open Bitrise link with the simulator browser.

Sometimes when you try to open service, you can get an unexpected error, like session used for another progress. This command view what is using up our current port.

If you know good tips & tricks, feel free to share with me.That’s it. 😃😃😃 Thanks for reading.

If you want to follow me in social media, here are some links: github, twitter, linkedin

You can check my previous articles here.

Health Research Program’s iOS Developer, currently lives in Washington, D.C http://www.about.me/durul

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store