ShellHacks
Command-Line Tips and Tricks

Blog

  • Blog

What Active Directory Groups Am I In?

Posted on April 6, 2022by admin

If your computer is running in a corporate environment, one day you may wonder which Active Directory (AD) groups your current user is a member of. The easiest way to see what AD groups i am a member of is by executing the appropriate commands from a command prompt (CMD or PowerShell) and this short […]

Read More
No comments yet
  • Blog

Find Out Text File Line Endings – LF or CLRF

Posted on March 23, 2022March 23, 2022by admin

A newline (also known as a line ending, end of line (EOL) or line break) is a character used to represent the end of a line of text and the beginning of a new line. Text files created on DOS/Windows machines have different line endings than files created on Unix/Linux. This note shows how to […]

Read More
No comments yet
  • Blog

SSHPass: SSH Login With Password – Command Line

Posted on March 21, 2022March 21, 2022by admin

A password-based authentication is often a default way to connect to a remote host over SSH. But as it requires a user to enter a password manually, this creates some complicity if you need to automate the SSH login. This note shows how to login over SSH by passing the password as a parameter on […]

Read More
No comments yet
  • Blog

Ansible Playbook “Dry Run” – Check Mode

Posted on March 15, 2022March 15, 2022by admin

An Ansible’s “dry run” or check mode feature is just a simulation of the execution of the ansible-playbook command. When the ansible-playbook command is executed in the check mode, it will not make any changes on a target system. With the Ansible’s “dry run” feature you can see if the target system is getting changed […]

Read More
No comments yet
  • Blog

Sublime: “Open Git Repository” Hotkey

Posted on March 9, 2022March 9, 2022by admin

To open a Sublime Merge from a Sublime Text it is required to open a context menu with the right-click and select the “Open Git Repository”. By default, there is no a keyboard shortcut to open the Sublime Merge quickly, that is not very handy. This short note shows how to create a key binding […]

Read More
No comments yet
  • Blog

Start Maximized | Minimized Program – CMD (Batch)

Posted on February 22, 2022February 22, 2022by admin

A START command is used to run a program or command in a separate window from a Windows command prompt (CMD). The new window can be started as maximized or minimized, that can be controlled using the /MAX or /MIN switches correspondingly. Below i will show how to start a program in the maximized or […]

Read More
1 Comment
  • Blog

Docker Compose: Pull Latest Image Version

Posted on February 10, 2022February 8, 2022by admin

The docker-compose up command doesn’t check a registry for a newer version of an image if it finds the image:latest among the locally cached images. So after a while you may find, that despite of the :latest tag of the image in a docker-compose.yml file, the docker-compose up command doesn’t pull the latest version of […]

Read More
No comments yet
  • Blog

Windows: Get a User’s SID – CMD & PowerShell

Posted on February 9, 2022February 6, 2022by admin

Any user, group or computer in Windows has a unique SID (security identifier) assigned. The SIDs are used to control access to various Windows resources like files, registry keys, network shares, etc. Below i will show you how to get the user’s SID and how to do the reverse SID lookup (get the user name […]

Read More
No comments yet
  • Blog

Windows: Migrate Domain User Profile To Local

Posted on February 8, 2022February 6, 2022by admin

If you are leaving a company and keep your corporate laptop, that is in a company’s AD domain (e.g. AzureAD), with you, you may wonder how to keep your user’s profile settings and data before removing it from the domain. Unfortunately, by the moment, Microsoft doesn’t propose any official tool to migrate the domain user […]

Read More
No comments yet
  • Blog

Change Computer Name – Windows CMD & PowerShell

Posted on February 7, 2022February 5, 2022by admin

To show a computer’s name in Windows, simply execute the hostname command from a Windows command prompt (CMD) or PowerShell. There may be multiple reasons to rename the computer. In this article, i will show you how to change your computer’s name in Windows using the CMD and PowerShell.

Read More
No comments yet

Posts navigation

Older posts
Newer posts

Online Tools

  • Base64 Decode
  • Base64 Encode

Tags

access-control anonymity ansible apache archive arduino artifactory aws bash boot cmd command-line curl dns docker encryption git gitlab java jenkins kubernetes linux macos mail mongodb mysql network openssl password pdf php powershell prometheus python raspberry pi ssh sublime text telegram telnet text-processing tor tsm windows wordpress yum
  • Telegram
  • Twitter
  • RSS
Privacy
Copyright © 2011-2022 | www.ShellHacks.com