-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcommands.sh
82 lines (66 loc) · 1.87 KB
/
commands.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#to remove some package
sudo apt-get --purge remove package
#figlet: to cutomize the terminal e.g. adding name or something
#to set the tab to 4
set expandtab ts=4
#to run vlc as root user
sed -i 's/geteuid/getppid/' /usr/bin/vlc
#to get your fortune told
apt-get install fortune
#then run
fortune
# replace previous/last command
Example:
head file.txt
```
^head^tail^
```
tail file.txt
#Creates a cute cat chasing around your mouse cursor :*
sudo apt install oneko
#then run:
oneko
#Locomotive animation
apt-get install sl
#then run
sl
#watch StarWars in Ascii
sudo apt install telnet
#then run:
telnet towel.blinkenlights.nl
#hash command in Linux system is the built-in command of bash which is used to maintain a hash table of recently executed programs.
#It remembers and shows the program locations. It will give the full pathname of each command name.
#Usage:
hash
hash -l
#get matrix effect on your terminal
#install
apt-get install cmatrix
#then run:
cmatrix
#rev : It reverse every string given to it
rev
#exemple :
hello
olleh
this is the rev command
dnammoc ver eht si siht
#The rig command generates random and possibly fake identities.
#install
sudo apt install rig
#run
rig
# Extract and remove a collection of rar archives with error checking (doesn't apply to multi-part archives)
# Install
apt-get install unrar
# Run
find . -maxdepth 1 -name "*.rar" -exec bash -c 'echo -n "Extracting {} ... "; if unrar x -y -inul "{}"; then echo "Done, deleting"; rm -f "{}"; else echo "Failed"; fi' \;
# Use the following line if adding to aliases (correct escaping)
## find . -maxdepth 1 -name \"*.rar\" -exec bash -c 'echo -n \"Extracting {} ... \"; if unrar x -y -inul "{}"; then echo \"Done, deleting\"; rm -f "{}"; else echo \"Failed\"; fi' \\;
# Show ASCII art in terminal with 'bb'
# Install
apt-get install bb
#Run
bb
#find large files in system
sudo find / -xdev -type f -size +100M