Fedora: some useful commands

Few use full commands which one has to know before doing anything
these commands are with respect to the terminal.
first go to terminal
1) TO KNOW THE SHELL INSTALLED
echo $SHELL

2)To know which shells are supported
cat /etc/shells

3) To list different directories and files
ls
dir
dir –color

to display hidden file
ls -A
ls -a

4)Present working directory
pwd

5)system time and date
date

6)calender
cal

7) T open a manual of any software which is installed then type
man
8)To create folders
mkdir

to make multiple folders
mkdir -p abc/b/c
creates a folder c in b in abc

to c all internal folders
ls -R

8)To know file type
file

9)change directory
cd
cd .. —————————–>goes to previos directory
cd ——————————> goes to root

10)To delete a folder
rmdir
rm -rf

11)create a txt file
touch
vi
cat
echo
gedit

12)Go to root
su

13)Logout
ctrl+D

14)To display a msg
echo ” message”

15)To copy
cp

16)To rename
>>mv

17)To copy a directory
cp -r

18)To display ip
ifconfig

19)To change ip
ifconfig 192.2.2.2
ex:
ifconfig 192.2.2.2

20)Create tar(zipped files)

tar -cvf .tar

extracts tar contents
>>tar -xvf .tar
display
>>tar -tvf .tar

unzip
>>gunzip .tar.gz

Hope u enjoy this 🙂

Advertisements

Wanna say something???

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s