SudoStack
1 subscriber
5 photos
πŸ–₯οΈβš™οΈ Dive into tips, tutorials, and tricks with SudoStack!
Download Telegram
Channel created
The pwd command shows the full path of your current directory in the terminal. It's super useful when you’re deep inside folders and forget where you are.

Example:
$ pwd
/home/sudostack/documents/projects

Options:
pwd -L ➑ Shows the logical path (including symbolic links).
pwd -P ➑ Shows the physical path (without symbolic links).

Simple but powerful!
Did you know you can repeat your last command by just typing !! ? 🀯

Example:
$ echo "Hello, World!"
Hello, World!

$ !!
echo "Hello, World!"
Hello, World!


This command is super useful when you forget to use sudo:

$ apt update
Permission denied

$ sudo !!
sudo apt update

Linux magic at its best ✨🐧
Drop your guesses in the comments! πŸ‘‡πŸ§
The cat command is used to view the contents of a file in the terminal. It can also combine multiple files into one. πŸ“„βž‘πŸ“„

Basic Usage:

$ cat filename.txt
(Displays the content of filename.txt)

Other Uses:

Combine multiple files:
$ cat file1.txt file2.txt > merged.txt

Number lines in output:
$ cat -n filename.txt

Display special characters:
$ cat -v filename.txt

A simple yet powerful command every Linux user should know! 🐧
Drop your answers in the comments! πŸ‘‡πŸ§