Skip to content

Commit

Permalink
fs: rearrange
Browse files Browse the repository at this point in the history
  • Loading branch information
Piyush-linux committed Apr 26, 2024
1 parent a30d800 commit 3da18c1
Show file tree
Hide file tree
Showing 6 changed files with 119 additions and 23 deletions.
37 changes: 37 additions & 0 deletions docs/rock/cli/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
```yml
- cli vs terminal vs console
- help

```
**Type** : sh , bash , ksh , zsh
### Help
- Get the require INFO for an command
```sh
cmd --help
man cmd # Manual Page
tldr cmd # utility
cheat.sh
```

### Whoami

```sh
whoami
uname -a
host
ip a
```

### System Overview

```sh
neofetch
pfetch
namaskar.sh
```
71 changes: 48 additions & 23 deletions docs/rock/navigation.md → docs/rock/cli/navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,23 @@ user> dir2
```

- Change directory
- relative vs absolute path
```sh [Change dir]
# change path to dir2 (relative)
# change path to dir2 (relative path)
user> cd ./dir2
user/dir2>

# change path to home
user/dir2> cd ~
user>

# change path to dir2 (absolute)
# change path to dir2 (absolute path)
user> cd /user/dir2
user/dir2>

# change path to root
user> cd /
/>
```

- Display my current path
Expand All @@ -61,47 +66,67 @@ user/dir2> pwd
/home/user/dir2 # my current path
```

### Working with File

- Create file

```sh
touch file1.txt
touch file1.txt file3.txt file2.txt
```

- Display file
```sh
cat file1.txt
```

## Navigation
- List file

```sh
# list files
user> ls
user> dir1 dir2 file.txt

# list meta data
user> ls -lh

# list hidden files
user> ls -a
```

- Remove file

```
rm file.txt
```

- Copy File

```sh
# navigation
touch
rm
cd
pwd
mv
cp
ls
file
cat
cp file1.txt file2.txt
# copy file1 to Desktop (absolute path)
cp file1.txt ~/user/Desktop/
```

- Rename File

```sh
mv file0.txt file1.txt
```

# help
man
<cmd> --help
tldr
cheat.sh
- Move File
```sh
# move file1 complete;y to Desktop
mv file1.txt ~/user/Desktop
```

# about
whoami
uname
hostname
neofetch
- Detect File Type

```sh
file file1.txt
```


---

::: danger Kuroku, the Path-Twister
Expand Down
1 change: 1 addition & 0 deletions docs/rock/gui/ricing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- unixporn
File renamed without changes.
File renamed without changes.
33 changes: 33 additions & 0 deletions docs/rock/tmux.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

> [Cheetsheet](https://tmuxcheatsheet.com/)
> | Session - Window - Plane |

```sh
tmux ls
tmux
> exit

Prefix : Ctrl + B
Detach : CB + d
tmux new -s SessionName
rename : CB + $

move up : C + b then [ then UpArrow

> CB + S
> CB + :command
tmux kill-session -t 2
tmux kill-server

# alias
tm="tmux new -s <name>" # session name
tmA="tmux a -t"
tmK="tmux kill-session -t <0>" # kill session by ID
tmL="tmux ls"

# COPY SESSION
: capture-pane -S -1000
: save-buffer ~/tmuxHistory.sh
```

0 comments on commit 3da18c1

Please sign in to comment.